Ich hatte nun mal Zeit mir auch den Kernel 2.6 zu bauen,da ich ne HD in der Box habe soll die auch laufen.
Die HD läuft mit Kernel 2.6,mann muss nur noch paar Sachen im Kernel aktivieren und die Gerätedateien in /dev erstellen.
Hier der interessante Teil vom Bootlog:
.............................
init started: BusyBox v1.9.0 (2008-01-19 17:24:05 CET)
starting pid 102, tty '': '/etc/init.d/rcS'
[ 14.658628] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
[ 14.664801] ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
[ 14.808265] dboxide: $Id: main.c,v 1.4.2.6 2007/10/09 01:04:06 carjay Exp $
[ 14.814988] dboxide: activating cs2
[ 14.818625] dboxide: address space of DBox2 IDE CPLD is at: 0xc38b4000
[ 16.187310] hda: FUJITSU MHV2080AT, ATA DISK drive
[ 16.907573] dbox2 at 0x010-0x017,0x04e on irq 47
[ 17.147445] hda: max request size: 128KiB
[ 17.534284] hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=65535/16/63
[ 17.546822] hda: cache flushes supported
[ 17.551764] hda: hda1 hda2
[ 22.129061] SGI XFS with no debug enabled
[ 22.317740] XFS mounting filesystem hda2
Detected STB:
Vendor: Nokia
Model: D-BOX2
....................................
HD wird gemountet und erkannt:
Code: Alles auswählen
~ > df -h
Filesystem Size Used Available Use% Mounted on
rootfs 5.9M 5.9M 0 100% /
/dev/root 5.9M 5.9M 0 100% /
/dev/mtdblock/3 1.5M 1.2M 356.0k 77% /var
/dev/hda2 74.4G 11.9M 74.4G 0% /hdd
Der Mountbefehl muss nun mount -t <filesystem>
/dev/hdax /hdd heissen wobei /dev/hda1 /dev/hda2 usw. die einzelnen Partitionen wären.
In der Kernelkonfig hab ich nur das aktiviert fürs IDE:
Code: Alles auswählen
CONFIG_IDE=m
CONFIG_IDE_MAX_HWIFS=4
CONFIG_BLK_DEV_IDE=m
CONFIG_BLK_DEV_IDEDISK=m
Geladen wird das ganze dann in der rcS (oder sonstwo...) mit
modprobe dboxide
modprobe ide_disk
Und natürlich noch die Gerätedateien,hab da mal für 5 Partitionen gemacht.
Für makedevices,iss auch noch nen Fix für die tts dabei :
Index: makedevices/makedevices.c
===================================================================
RCS file: /cvs/tuxbox/apps/misc/tools/makedevices/makedevices.c,v
retrieving revision 1.2
diff -u -r1.2 makedevices.c
--- a/makedevices/makedevices.c 18 Nov 2007 18:12:52 -0000 1.2
+++ b/makedevices/makedevices.c 21 Jan 2008 20:26:48 -0000
@@ -38,8 +38,8 @@
{ "tty1", C, 4, 2 },
{ "tty2", C, 4, 2 },
{ "tty3", C, 4, 3 },
- { "tts/0", C, 4, 64 },
- { "tts/1", C, 4, 65 },
+ { "tts/0", C, 204, 46 },
+ { "tts/1", C, 204, 47 },
{ "tty", C, 5, 0 },
{ "console", C, 5, 1 },
{ "ptmx", C, 5, 2 },
@@ -51,6 +51,12 @@
{ "loop5", B, 7, 5 },
{ "loop6", B, 7, 6 },
{ "loop7", B, 7, 7 },
+ { "hda", B, 3, 0 },
+ { "hda1", B, 3, 1 },
+ { "hda2", B, 3, 2 },
+ { "hda3", B, 3, 3 },
+ { "hda4", B, 3, 4 },
+ { "hda5", B, 3, 5 },
{ "input/mouse0", C, 13, 32 },
{ "input/mice", C, 13, 63 },
{ "input/event0", C, 13, 64 },
Oder halt mit mknod erstellen.
So läuft die Box hier mit IDE,könnt ihr ja mal testen....
u-boot 1.3.1/kernel 2.6.23/busybox 1.9.0