Booting Linux from Flash
I would certainly like to get a flash filesystem driver. I'm not sure if it is the same thing you are talking about.
I want to boot linux on an powerpc embedded system which has no hard disk. I do not want to use lilo. I imagine that I would have write a simple bootloader to get the kernel booting. I want to store the kernel at a known location in Flash and store a boot image at a known location in Flash. I then want to execute the kernel somehow (jump to appropriate address) and pass to it any parameters required to let it place the boot image in a ram disk. I think the kernel lives in the file system so it's a bit of a chicken and egg problem as far as I can see. Is the kernel that is booting stored in the boot image. If so I guess the boot image has to be uncompressed. The root filesystem can be a compressed image though.
Anyone know where I should start with regards to bootloaders or how to get the kernel booting if I have the kernel and bootimage in Flash somewhere. Note the Flash is just memory mapped on a SIMM. There is no IDE driver or filesystem on it. Do I need a Flash device driver ??
Thanks,
Brendan Simon.
Quoted 8 lines · John VanLoon
I have a driver for a card from advantech. I do not believe that much would have to be done to have it usable on a FLASH BOOT BLOCK device. You would just need to fill in the details and perhaps add support for multiple partitions if you need it (an offset to the beginning is already supported allowing booting from compressed image ...) and modify lilo. Let me know if you would like such a thing.
John van Loon
[email protected]
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 13 lines · [email protected] (Brendan Simon) writes:
I would certainly like to get a flash filesystem driver. I'm not sure if it is the same thing you are talking about.
I want to boot linux on an powerpc embedded system which has no hard disk. I do not want to use lilo. I imagine that I would have write a simple bootloader to get the kernel booting. I want to store the kernel at a known location in Flash and store a boot image at a known location in Flash. I then want to execute the kernel somehow (jump to appropriate address) and pass to it any parameters required to let it place the boot image in a ram disk. I think the kernel lives in the file system so it's a bit of a chicken and egg problem as far as I can see. Is the kernel that is booting stored in the boot image. If so I guess the boot image has to be uncompressed. The root filesystem can be a compressed image though.
The way I'm doing it is i just place the bootcode and a zImage at place in the flash-mem where the machine boots. Then i just set up the machine and copy the zImage down to ram and jump to it.
You could probably get it to read a compressed fs image from flash and mount it as a ram-disk by either using some initrd hacking or doing some kernel startup modifications.
Quoted 4 lines
Anyone know where I should start with regards to bootloaders or how to get the kernel booting if I have the kernel and bootimage in Flash somewhere. Note the Flash is just memory mapped on a SIMM. There is no IDE driver or filesystem on it. Do I need a Flash device driver ??
No, you don't need a Flash device driver unless you want to write to the flash.
/ Alex
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]