Embedded Linux >> PC104 with 8MB CF Linux Bootup

by Jason Curl » Thu, 09 Sep 2004 00:03:08 GMT

Hello,

I have a P5M from Digital Logic (www.digitallogic.ch) that is basically
Intel architecture. It comes with builtin video, a P5 with 64MB RAM. It
is designed to boot off Flash ROM.

I am having problems trying to get 'init' to work.

It's running GRUB 0.95a successfully. The kernel is 2.6.8.1 with almost
all features removed, except IDE, VGA, Keyboard and built-in network for
127.0.0.1 support. The kernel starts up successfully.

The CF is two partitions, the first is VFAT (for data access to a
laptop), the second is ext2fs.

Further, I'm not using SysLinux (I want a native boot, so that a user
cannot damage or delete the Linux partition from Windows), nor do I have
set up initrd or RAM disks. I hope that I can have the whole system
start up and ext2fs can remain read-only.

My problem, while I have copied over 'sh' from RedHat 9.0 (or FC3 Test
1) to /bin/sh, and used ldd to find all the dynamic dependencies (ld,
libc.so.6, termcap, etc.), the system appears to Halt with no output on
the console.

I copy the binaries from a distribution called "Pocket Linux" that is
using LibC version 5 and older LD, everything works. When I create a
test program that uses shared libraries (it would normally print only
"Hello World"), copy it to the CF in /bin, copy the appropriate
libraries form RH9.0 (or FC3t1) and executing it from the 'sh' from
Pocket Linux, it reports "Illegal Instruction".

When the same test program is compiled statically, it can be used as
init, and everything works as expected.

So - the problem looks to be related to the loader on startup, and I
have no further ideas how to fix it. I would like to use the newer LIBc
libraries, as my development machine is FC3 or RH9 and I'd like to copy
the binary outputs for the programs onto the PC104 device.

Any ideas?

Thanks,
Jason.


Embedded Linux >> PC104 with 8MB CF Linux Bootup

by me » Thu, 09 Sep 2004 06:57:50 GMT





P5 is 586, right?

...


Is your development machine 686 or above?


Compile everything in 586 or lower.




Similar Threads

1. Linux under 8MB

2. Bug in /usr/src/gnu/usr.sbin/sendmail/cf/cf/README

3. relatime-linux on a PC104

Hello I trying to make an embedded Linux system on an PC104. Also i
need the Linux system to be realtime, I think RTAI would do the job. I
tried White Dwarf Linux, but this is not working fine. Can I make my
own realtime-embedded Linux on an development pc, and then transfer it
on the PC104? Is somebody having experience in this?

Thanks

4. Embedded RTAI Linux on a PC104 - Embedded Linux

5. how to port linux to pc104?

pc104,not plus.the cpu is 486.
who knows the steps?
any hint?

10x


6. Linux embedded PC104 - Embedded Linux

7. Linux on more than one PC104 won't boot

Help!

I have a port of Debian Sarge running from compact flash on a PC104
board.  Everything is great.  But now my boss wants to support another
PC104 board that maps the compact flash to a different ide interface.
So first board the CF is on IDE0,1(/dev/hdb), the second board is
mapped to IDE1,0 (/dev/hdc).

How can I use the same distribution (same CF card) on both boards
without editing the boot=/dev/hdb1 and fstab entry's.  There must be a
way to detect what drive is the first in the system (hdb or hdc) and
tell grub or fstab to use that instead.

If I could solve the fstab problem at least I could edit the boot
parameter in grub and be able to boot the CF card on a different PC
without first modifying the card.

thanks for your help.

 David Tucker

8. PC104/Linux platform questions - Embedded Linux