<<< Previous topic - Next topic >>> |
|
Author |
Message |
bernhard
Joined: 24 Oct 2006 Posts: 4
|
Posted: 14.08.2007, 19:30 Post subject: Probleme mit vergrössertem root Image |
|
|
Guten Abend!
Ich habe erfolgreich eine Toolchain, einen eigenen Kernel und ein passendes root Image auf Basis von PTXDist Templates kreiert. Als Container habe ich das rimage von der CD genommen, den Inhalt entfernt und mit meinem Userland populiert. So weit so gut, das System läuft perfekt.
Anschliessend wollte ich ein neues Minix Image erstellen, weil das Original etwas zu klein ist für meine Bedürfnisse:
Code: |
dd if=/dev/zero of=rimage count=19456
mkfs.minix rimage
du -sh rimage --> 9.6M rimage
du -sh root --> 8.7M root (Userland Verzeichnis)
|
Entsprechend habe ich die Partitionierung angepasst:
Code: |
{
.name = "Bootloader",
.size = 0x00040000,
.offset = 0,
.mask_flags = MTD_WRITEABLE /* force read-only */
},{
.name = "System",
.size = 0x00A00000,
.offset = 0x00040000,
},{
.name = "Storage",
.size = MTDPART_SIZ_FULL,
.offset = 0x00A40000
}
|
Das ergibt folgendes Bild:
Code: |
cat /proc/partitions
major minor #blocks name
31 0 256 mtdblock0
31 1 10240 mtdblock1
31 2 5888 mtdblock2
df -h
Filesystem Size Used Available Use% Mounted on
/dev/ram0 9.9M 8.6M 1.3M 87% /
tmpfs 14.5M 4.0k 14.5M 0% /dev
|
Beim booten erhalte ich folgende Fehlermeldungen:
Code: |
[...]
RAMDISK: Compressed image found at block 0
RAMDISK: incomplete write (-28 != 32768) 8388608
VFS: Mounted root (minix filesystem).
Freeing init memory: 96K
mounting filesystems...attempt to access beyond end of device
[...]
Buffer I/O error on device ram0, logical block 8615
attempt to access beyond end of device
ram0: rw=0, want=17754, limit=16384
[...]
|
Vielleicht übersehe ich etwas offensichtliches, aber Pi mal Handgelekt müsste eigentlich alles zusammenpassen ???
Ratlose Grüsse aus der Schweiz::Bernhard |
|
Back to top |
|
 |
bernhard
Joined: 24 Oct 2006 Posts: 4
|
Posted: 16.08.2007, 21:47 Post subject: |
|
|
OK, habe die Lösung gefunden...
Es reicht nicht die Partitionstabelle (Map) im A/DNP9200 Patch anzupassen, sondern die Parameter für die Ramdisk im Standardkernel müssen von 8192k auf 10240k (in meinem Fall) erhöht werden. Wäre ja eigentlich logisch:
ram0: rw=0, want=17754, limit=16384
16384 Blocks à 512 Byte = 8192kByte
Code: |
#
# Block devices
#
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_CRYPTOLOOP=y
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_UB is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=10240
CONFIG_BLK_DEV_INITRD=y
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
|
Cheers::Bernhard |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|