OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> Booting Modern Distros From An Sd Card Using The 2.6.23 Kernel, c7x0, 2.6.23 Kernel and the Altboot Bug
post 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,


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


#$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


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


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.


Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th June 2018 - 12:23 PM