Jan 21 2008, 01:20 AM
Post
#1
|
|
|
Group: Members Posts: 138 Joined: 12-February 04 Member No.: 1,830 |
Hi all,
For some time I've tried to get the Angstrom 2.6.23 kernel to work with Debian on my C860, but I've been bitten by the altboot bug (see http://bugs.openembedded.org/show_bug.cgi?id=1718 for example), where the system freezes a few seconds after booting. I think I've found a solution to this issue. After doing some experimenting, it looks like the system hang can be prevented by executing /etc/init.d/sysklogd script early on during initialisation. I don't know why this should stop the hanging, but it does. So to ensure this is run early in initialisation, CODE cd /etc/rcS.d ln -sf ../init.d/sysklogd S01sysklogd Note that you still have to be fast at selecting option 1 (boot from flash) or 3 (boot from SD card) in the altboot menu, and that you usually have to make the selection twice. I also commented out line 474 of /etc/altboot.func, so that it says CODE #$FSCK $1 || sleep 2 otherwise when booting from SD card, it always checks the filesystem, which takes forever, and may lead to the system freezing because the syslog daemon is not executed in time. My current setup is as follows: Latest Angstrom kernel and console image including altboot installed on flash. Debian tarball unzipped to SD card (in /debian directory). Angstrom filesystem unzipped to SD card (in /angstrom directory). The failsafe mode is to boot Angstrom from flash. To experiment with the minimum requirements needed for booting, I CODE cd /media/card ln -sf angstrom/* . Then I play around with which scripts I keep inside /etc/rcS.d and /etc/rc5.d, run altboot, select option 3, and see if the system boots. If it doesn't, I remove the power, select altboot option 1, boot from flash, and make further changes. To boot Debian, I CODE cd /media/card ln -sf debian/* . and then boot from the SD card. At the moment I haven't got the CF card working, so maybe this functionality has been removed from the kernel so that I need to load a module or something. In theory this technique could also be used for other distros, such as Android. I might have missed other dependencies, such as one or two binaries from Angstrom /sbin, but if other people try this method for determining what the boot requirements are, then we would get a definitive answer. If anyone gets this to work, please add further comments to this thread. Cheers, Dan |
|
|
|
![]() |
Feb 18 2008, 04:20 AM
Post
#2
|
|
|
Group: Members Posts: 76 Joined: 4-May 04 From: Athens, Greece Member No.: 3,136 |
Dan,
You do not need this setup with two directories (angstrom/debian) and creating symbolic links. Altboot supports booting loopback images. If you have the rootfs as a file ending in ".rootfs.tar.gz" in SD, then altboot (through the "Advanced" menu) can create a loopback image out of it for you. When booting, altboot sees all the images and presents you with a menu allowing to choose which one to boot. Thus, if you have a big enough SD card you can have many distributions on it without problems and workarounds. Also, commenting out line 474 of /etc/altboot.func is not needed. The file /etc/altboot-2.6.cfg contains a variable "FSCK_IMAGES": set it to "no" to disable checking (remember to check them manually from time to time from the NAND installation though). Edited to add info about FSCK_IMAGES |
|
|
|
Feb 19 2008, 04:24 AM
Post
#3
|
|
|
Group: Members Posts: 138 Joined: 12-February 04 Member No.: 1,830 |
Dan, You do not need this setup with two directories (angstrom/debian) and creating symbolic links. Altboot supports booting loopback images. If you have the rootfs as a file ending in ".rootfs.tar.gz" in SD, then altboot (through the "Advanced" menu) can create a loopback image out of it for you. When booting, altboot sees all the images and presents you with a menu allowing to choose which one to boot. Thus, if you have a big enough SD card you can have many distributions on it without problems and workarounds. Are the loopback images read-only or is there support for writing to them as well? Cheers, Dan |
|
|
|
danr Booting Modern Distros From An Sd Card Using The 2.6.23 Kernel Jan 21 2008, 01:20 AM
kibymo I follow your way and it can boot to 2.6.23 on c86... Jan 22 2008, 07:00 AM
henrysviper I have the same problem as kibymo
I tried it with... Feb 15 2008, 03:23 PM
henrysviper QUOTE(danr @ Feb 19 2008, 02:24 PM) Are t... Feb 20 2008, 01:54 AM
svs57 Hi
As I understand I need
1. flash Angstrom
2. put... Oct 16 2008, 02:45 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 01:25 PM |