1 |
Lutz Schönemann wrote: |
2 |
> Hi, |
3 |
> I'm trying to get Linux running on a x86 embedded-system (Panel PC |
4 |
> "Atlas"). The os should be loaded from a CF-Card (CF-Card reader is |
5 |
> onboard and bootable). My current problem with it is that I don't know |
6 |
> how to get a bootloader installed on a CF-Card. |
7 |
> I have a Gentoo-Box (Toshiba Laptop) compiled for i386. The CF-Card is |
8 |
> connected via USB. When ever I install a bootloader on the CF-Card a |
9 |
> Dell laptop is able to boot from it but the embedded system doesn't do |
10 |
> it. It seems to be the problem that the two BIOS differ to much from |
11 |
> each other. |
12 |
> How can I install a bootloader that works on other hardware (with |
13 |
> different BIOS)? |
14 |
|
15 |
I use syslinux. |
16 |
|
17 |
> Someone told me to build a very small kernel and put that into the |
18 |
> master boot record (must be smaller than 446 bytes). How can I do this? |
19 |
> I have deactivated nearly all features, compiled everything as module |
20 |
> that could be build as module but the kernel size is 627k !?! |
21 |
|
22 |
No. You dont need to install the kernel on the MBR. the MBR is the data |
23 |
that lies before the first partition. Normally (in dos times) the mra |
24 |
contained code that found the first partition that is marked bootable |
25 |
and the boot that partition (something like that). |
26 |
|
27 |
You need to: |
28 |
1. mark the boot partition as bootable. (fdisk /dev/sdX -> 'a') |
29 |
2. install lilo/syslinux on the the boot partition (syslinux /dev/sdX1) |
30 |
3. install the mbr, in case you have overwritten it with grub or |
31 |
seomthing like that. (dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdX) |
32 |
|
33 |
The example is how I would do it here, using syslinux. It will be |
34 |
different with lilo. |
35 |
|
36 |
replace sdX with your device. |
37 |
|
38 |
|
39 |
> |
40 |
> For more information on the hardware: |
41 |
> http://www.kws-computer.de/ppcatlas.html |
42 |
> |
43 |
> there is a link to the data sheet (Datenblatt) |
44 |
> |
45 |
> Thanks for help |
46 |
> |
47 |
|
48 |
-- |
49 |
gentoo-embedded@g.o mailing list |