QEMU initrd option for arm

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

QEMU initrd option for arm

Post by Jezze »

For x86 I am able to use -initrd to load an additional ramdisk alongside my kernel.

I am now working on ARM (-machine integratorcp) and I have a bit of problem understanding what data QEMU should provide to my kernel about where it has placed the ramdisk. When I look through the QEMU code it seems like it is suppose to provide the kernel with a table filled with ATAGS both at base + 0x100 and in register r2 but that does not seem to be the case.

Has anyone had any luck getting this to work? In that case what did you do?
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: QEMU initrd option for arm

Post by Candy »

I use it on the r-pi target (non-mainstream) which always puts it at 128M or halfway up the memory, which for all RPIs is 128M. No idea if there's any other way to find out where it is, I just looked up the location in the qemu sources and called it a day as it's a development-time only thing anyway for me.
Post Reply