soekris imaging problem; Need help! - Embedded

This is a discussion on soekris imaging problem; Need help! - Embedded ; Aight, I am kind of new at embedded systems so let me explain what I am currently using.. system: slackware 10.2; 2.6.13 kernel Hardware: usb CF reader/writter 64 MB CF net4521 soekris board The way im installing the image is.. ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: soekris imaging problem; Need help!

  1. soekris imaging problem; Need help!

    Aight,
    I am kind of new at embedded systems so let me explain what I am
    currently using..

    system:
    slackware 10.2; 2.6.13 kernel

    Hardware:
    usb CF reader/writter
    64 MB CF
    net4521 soekris board

    The way im installing the image is..
    1) create an ext2/ext3 filesystem
    - mke2fs /dev/sda1

    2) create a partition. Maybe I should use fdisk????
    - cfdisk /dev/sda1
    - the partition looks like this..
    sda1p1 Boot Primary Linux 63.97
    NOTE: when I goto write the partition i get this..
    "Wrote partition table, but re-read table failed. Reboot to update
    table.
    Toggle bootable flag of the current
    partition "
    I don't know if this has anything to do with my problem..

    3)dd .img file onto the CF disk
    -dd if=aspisos-16MB-0.1.img of=/dev/sda1 bs=512
    31744+0 records in
    31744+0 records out
    NOTE: I am using the aspisos image, located here..
    ftp://aspisos.org/releases/0.1/net45...MB-0.1.img.bz2

    4)I then start minicom, here is a copy of my dmesg from the mincom
    term..

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
    comBIOS ver. 1.28 20050527 Copyright (C) 2000-2005 Soekris
    Engineering.

    net45xx

    0064 Mbyte Memory CPU 80486 133 Mhz

    Pri Mas SanDisk SDCFB-64 LBA 490-8-32 62 Mbyte

    Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1 Base2 Int
    -------------------------------------------------------------------
    0:00:0 1022 3000 06000000 0006 2280 00 00 00 00000000 00000000
    0:17:0 104C AC51 06070000 0107 0210 10 3F 82 A0000000 020000A0 10
    0:17:1 104C AC51 06070000 0107 0210 10 3F 82 A0001000 020000A0 10
    0:18:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0002000 11
    0:19:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0003000 05

    1 Seconds to automatic boot. Press Ctrl-P for entering Monitor.

    SYSLINUX 2.11 2004-08-16 Copyright (C) 1994-2004 H. Peter Anvin
    Loading linux...............
    Loading initrd..............
    Ready.
    Linux version 2.6.14.7-aspisos (aspisap@alsterg) (gcc version 4.1.0) #3
    Tue May 23 00:25:18 Local timu
    BIOS-provided physical RAM map:
    BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
    BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
    BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
    BIOS-e820: 0000000000100000 - 0000000004000000 (usable)
    BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
    64MB LOWMEM available.
    DMI not present.
    Allocating PCI resources starting at 10000000 (gap: 04000000:fbf00000)
    Built 1 zonelists
    Kernel command line: initrd=initrd root=/dev/ram0 init=/linuxrc ro
    console=ttyS0,19200n8 lids=1 pax_s
    Initializing CPU#0
    PID hash table entries: 512 (order: 9, 8192 bytes)
    Using pit for high-res timesource
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 62012k/65536k available (1138k kernel code, 3084k reserved,
    117k data, 96k init, 0k highmem)
    Checking if this processor honours the WP bit even in supervisor
    mode... Ok.
    Security Framework v1.0.0 initialized
    Mount-cache hash table entries: 512
    CPU: AMD 486 DX/4-WB stepping 04
    Checking 'hlt' instruction... OK.
    checking if image is initramfs...it isn't (bad gzip magic numbers);
    looks like an initrd
    Freeing initrd memory: 756k freed
    NET: Registered protocol family 16
    PCI: PCI BIOS revision 2.01 entry at 0xf7861, last bus=2
    PCI: Using configuration type 1
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    PCI: Probing PCI hardware
    PCI: Probing PCI hardware (bus 00)
    PCI: Bus 1, cardbus bridge: 0000:00:11.0
    IO window: 00001000-000010ff
    IO window: 00001400-000014ff
    PREFETCH window: 10000000-11ffffff
    MEM window: 12000000-13ffffff
    PCI: Bus 5, cardbus bridge: 0000:00:11.1
    IO window: 00001800-000018ff
    IO window: 00001c00-00001cff
    PREFETCH window: 14000000-15ffffff
    MEM window: 16000000-17ffffff
    squashfs: version 3.0 (2006/03/15) Phillip Lougher
    fuse init (API version 7.2)
    Initializing Cryptographic API
    Real Time Clock Driver v1.12
    Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing
    disabled
    ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    io scheduler noop registered
    io scheduler deadline registered
    RAMDISK: wrong blocksize 65536, reverting to defaults
    RAMDISK driver initialized: 8 RAM disks of 1024K size 1024 blocksize
    loop: loaded (max 240 devices)
    natsemi dp8381x driver, version 1.07+LK1.0.17, Sep 27, 2002
    originally by Donald Becker
    http://www.scyld.com/network/natsemi.html
    2.4.x kernel port by Jeff Garzik, Tjeerd Mulder
    natsemi eth0: NatSemi DP8381[56] at 0xa0002000 (0000:00:12.0),
    00:00:24:c1:7b:94, IRQ 11, port TP.
    natsemi eth1: NatSemi DP8381[56] at 0xa0003000 (0000:00:13.0),
    00:00:24:c1:7b:95, IRQ 5, port TP.
    Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    ide: Assuming 33MHz system bus speed for PIO modes; override with
    idebus=xx
    hda: SanDisk SDCFB-64, CFA DISK drive
    ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    hda: max request size: 128KiB
    hda: 125440 sectors (64 MB) w/1KiB Cache, CHS=490/8/32
    hda: cache flushes not supported
    hda: hda1
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    ip_conntrack version 2.3 (512 buckets, 4096 max) - 236 bytes per
    conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    arp_tables: (C) 2002 David S. Miller
    TCP bic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    Bridge firewalling registered
    Using IPI Shortcut mode
    RAMDISK: squashfs filesystem found at block 0
    RAMDISK: Loading 754KiB [1 disk] into ram disk... done.
    VFS: Mounted root (squashfs filesystem) readonly.
    Freeing unused kernel memory: 96k freed
    init started: BusyBox v1.1.0 (2006.05.21-19:28+0000) multi-call binary
    * Checking for any new Add-Ons..
    hda: hda1

    NOTE: Everything looks fine until it reaches this bottom section

    FAT: invalid media value (0x01)
    VFS: Can't find a valid FAT filesystem on dev hda.
    hda: hda1
    mkdir: Cannot create directory `/mnt/installed': Read-only file system
    * Loading Modules../mnt/initrd: No such file or directory
    ls: /mnt/modules/*.mod: No such file or directory
    NONE
    * Setting up Root (/) filesystem..
    Registering unionfs 1.1.4
    /etc/init.d/unify: cd: 76: can't cd to /mnt/modules/
    * Setting up /etc..
    unionfs: error accessing hidden directory '/tmp/initrd/etc' (error -2)
    unionfs_read_super: error while parsing options (err = -2)
    mount: special device unionfs does not exist
    /tmp/etc.d is not a valid union.
    /etc/init.d/unify: cd: 90: can't cd to /mnt/modules/
    /tmp/etc.d is not a valid union.
    * Setting up /var..
    unionfs: error accessing hidden directory '/tmp/initrd/var' (error -2)
    unionfs_read_super: error while parsing options (err = -2)
    mount: special device unionfs does not exist
    /tmp/var.d is not a valid union.
    /etc/init.d/unify: cd: 116: can't cd to /mnt/modules/
    /tmp/var.d is not a valid union.
    * Setting up /lib/modules..
    unionfs: error accessing hidden directory '/tmp/initrd/lib/modules'
    (error -2)
    unionfs_read_super: error while parsing options (err = -2)
    mount: special device unionfs does not exist
    /tmp/modules.d is not a valid union.
    /etc/init.d/unify: cd: 142: can't cd to /mnt/modules/
    /tmp/modules.d is not a valid union.
    * Loading User Settings..
    tar: /mnt/etc.tar.gz: No such file or directory
    cp: /tmp/etc.temp/*: No such file or directory
    tar: /mnt/var.tar.gz: No such file or directory
    cp: /tmp/var.temp/*: No such file or directory
    * Moving to the new merged filesystem..
    pivot_root: No such file or directory
    * Initializing all services..
    sed: no temp file
    chroot: can
    (none) login:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~

    Now I can log in and look around, but as far as me vi'ing any file or
    even creating my own file, I can't do it, because its a read-only
    system, which i beleive is my problem.

    Also on a side problem; this image file that im using seems to be the
    only image file that I can actually dd to the CF card. All of the other
    ones that I have downloaded from the internet, (net45xx-1.21.img,
    gct-0.0.8.img) seem to either freeze up when the bios finishes counting
    down from 5 to 1, or either gives me this output..

    "L 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99
    99 99 99 99 99 99 99 99 99 99"

    Please any help/ideas will be nice, also if anyone has a simple image
    for the net4521 soekris board that is known to work, post it and i'll
    give it a try and reply the outcome.

    Thank You,
    ~Jimmie


  2. Re: soekris imaging problem; Need help!

    We tried to make the instructions on the aspisos site easy..but again..

    download the image File aspisos-16MB-0.1.img.bz2

    if your in linux..

    from shell

    dd if= of= bs=1k
    sync







    jimi_xyz@hotmail.com wrote:
    > Aight,
    > I am kind of new at embedded systems so let me explain what I am
    > currently using..
    >
    > system:
    > slackware 10.2; 2.6.13 kernel
    >
    > Hardware:
    > usb CF reader/writter
    > 64 MB CF
    > net4521 soekris board
    >
    > The way im installing the image is..
    > 1) create an ext2/ext3 filesystem
    > - mke2fs /dev/sda1
    >
    > 2) create a partition. Maybe I should use fdisk????
    > - cfdisk /dev/sda1
    > - the partition looks like this..
    > sda1p1 Boot Primary Linux 63.97
    > NOTE: when I goto write the partition i get this..
    > "Wrote partition table, but re-read table failed. Reboot to update
    > table.
    > Toggle bootable flag of the current
    > partition "
    > I don't know if this has anything to do with my problem..
    >
    > 3)dd .img file onto the CF disk
    > -dd if=aspisos-16MB-0.1.img of=/dev/sda1 bs=512
    > 31744+0 records in
    > 31744+0 records out
    > NOTE: I am using the aspisos image, located here..
    > ftp://aspisos.org/releases/0.1/net45...MB-0.1.img.bz2
    >
    > 4)I then start minicom, here is a copy of my dmesg from the mincom
    > term..
    >
    > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
    > comBIOS ver. 1.28 20050527 Copyright (C) 2000-2005 Soekris
    > Engineering.
    >
    > net45xx
    >
    > 0064 Mbyte Memory CPU 80486 133 Mhz
    >
    > Pri Mas SanDisk SDCFB-64 LBA 490-8-32 62 Mbyte
    >
    > Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1 Base2 Int
    > -------------------------------------------------------------------
    > 0:00:0 1022 3000 06000000 0006 2280 00 00 00 00000000 00000000
    > 0:17:0 104C AC51 06070000 0107 0210 10 3F 82 A0000000 020000A0 10
    > 0:17:1 104C AC51 06070000 0107 0210 10 3F 82 A0001000 020000A0 10
    > 0:18:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0002000 11
    > 0:19:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0003000 05
    >
    > 1 Seconds to automatic boot. Press Ctrl-P for entering Monitor.
    >
    > SYSLINUX 2.11 2004-08-16 Copyright (C) 1994-2004 H. Peter Anvin
    > Loading linux...............
    > Loading initrd..............
    > Ready.
    > Linux version 2.6.14.7-aspisos (aspisap@alsterg) (gcc version 4.1.0) #3
    > Tue May 23 00:25:18 Local timu
    > BIOS-provided physical RAM map:
    > BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
    > BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
    > BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
    > BIOS-e820: 0000000000100000 - 0000000004000000 (usable)
    > BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
    > 64MB LOWMEM available.
    > DMI not present.
    > Allocating PCI resources starting at 10000000 (gap: 04000000:fbf00000)
    > Built 1 zonelists
    > Kernel command line: initrd=initrd root=/dev/ram0 init=/linuxrc ro
    > console=ttyS0,19200n8 lids=1 pax_s
    > Initializing CPU#0
    > PID hash table entries: 512 (order: 9, 8192 bytes)
    > Using pit for high-res timesource
    > Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    > Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    > Memory: 62012k/65536k available (1138k kernel code, 3084k reserved,
    > 117k data, 96k init, 0k highmem)
    > Checking if this processor honours the WP bit even in supervisor
    > mode... Ok.
    > Security Framework v1.0.0 initialized
    > Mount-cache hash table entries: 512
    > CPU: AMD 486 DX/4-WB stepping 04
    > Checking 'hlt' instruction... OK.
    > checking if image is initramfs...it isn't (bad gzip magic numbers);
    > looks like an initrd
    > Freeing initrd memory: 756k freed
    > NET: Registered protocol family 16
    > PCI: PCI BIOS revision 2.01 entry at 0xf7861, last bus=2
    > PCI: Using configuration type 1
    > usbcore: registered new driver usbfs
    > usbcore: registered new driver hub
    > PCI: Probing PCI hardware
    > PCI: Probing PCI hardware (bus 00)
    > PCI: Bus 1, cardbus bridge: 0000:00:11.0
    > IO window: 00001000-000010ff
    > IO window: 00001400-000014ff
    > PREFETCH window: 10000000-11ffffff
    > MEM window: 12000000-13ffffff
    > PCI: Bus 5, cardbus bridge: 0000:00:11.1
    > IO window: 00001800-000018ff
    > IO window: 00001c00-00001cff
    > PREFETCH window: 14000000-15ffffff
    > MEM window: 16000000-17ffffff
    > squashfs: version 3.0 (2006/03/15) Phillip Lougher
    > fuse init (API version 7.2)
    > Initializing Cryptographic API
    > Real Time Clock Driver v1.12
    > Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing
    > disabled
    > ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    > ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    > io scheduler noop registered
    > io scheduler deadline registered
    > RAMDISK: wrong blocksize 65536, reverting to defaults
    > RAMDISK driver initialized: 8 RAM disks of 1024K size 1024 blocksize
    > loop: loaded (max 240 devices)
    > natsemi dp8381x driver, version 1.07+LK1.0.17, Sep 27, 2002
    > originally by Donald Becker
    > http://www.scyld.com/network/natsemi.html
    > 2.4.x kernel port by Jeff Garzik, Tjeerd Mulder
    > natsemi eth0: NatSemi DP8381[56] at 0xa0002000 (0000:00:12.0),
    > 00:00:24:c1:7b:94, IRQ 11, port TP.
    > natsemi eth1: NatSemi DP8381[56] at 0xa0003000 (0000:00:13.0),
    > 00:00:24:c1:7b:95, IRQ 5, port TP.
    > Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    > ide: Assuming 33MHz system bus speed for PIO modes; override with
    > idebus=xx
    > hda: SanDisk SDCFB-64, CFA DISK drive
    > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    > hda: max request size: 128KiB
    > hda: 125440 sectors (64 MB) w/1KiB Cache, CHS=490/8/32
    > hda: cache flushes not supported
    > hda: hda1
    > NET: Registered protocol family 2
    > IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    > TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    > TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    > TCP: Hash tables configured (established 4096 bind 4096)
    > TCP reno registered
    > ip_conntrack version 2.3 (512 buckets, 4096 max) - 236 bytes per
    > conntrack
    > ip_tables: (C) 2000-2002 Netfilter core team
    > arp_tables: (C) 2002 David S. Miller
    > TCP bic registered
    > NET: Registered protocol family 1
    > NET: Registered protocol family 17
    > Bridge firewalling registered
    > Using IPI Shortcut mode
    > RAMDISK: squashfs filesystem found at block 0
    > RAMDISK: Loading 754KiB [1 disk] into ram disk... done.
    > VFS: Mounted root (squashfs filesystem) readonly.
    > Freeing unused kernel memory: 96k freed
    > init started: BusyBox v1.1.0 (2006.05.21-19:28+0000) multi-call binary
    > * Checking for any new Add-Ons..
    > hda: hda1
    >
    > NOTE: Everything looks fine until it reaches this bottom section
    >
    > FAT: invalid media value (0x01)
    > VFS: Can't find a valid FAT filesystem on dev hda.
    > hda: hda1
    > mkdir: Cannot create directory `/mnt/installed': Read-only file system
    > * Loading Modules../mnt/initrd: No such file or directory
    > ls: /mnt/modules/*.mod: No such file or directory
    > NONE
    > * Setting up Root (/) filesystem..
    > Registering unionfs 1.1.4
    > /etc/init.d/unify: cd: 76: can't cd to /mnt/modules/
    > * Setting up /etc..
    > unionfs: error accessing hidden directory '/tmp/initrd/etc' (error -2)
    > unionfs_read_super: error while parsing options (err = -2)
    > mount: special device unionfs does not exist
    > /tmp/etc.d is not a valid union.
    > /etc/init.d/unify: cd: 90: can't cd to /mnt/modules/
    > /tmp/etc.d is not a valid union.
    > * Setting up /var..
    > unionfs: error accessing hidden directory '/tmp/initrd/var' (error -2)
    > unionfs_read_super: error while parsing options (err = -2)
    > mount: special device unionfs does not exist
    > /tmp/var.d is not a valid union.
    > /etc/init.d/unify: cd: 116: can't cd to /mnt/modules/
    > /tmp/var.d is not a valid union.
    > * Setting up /lib/modules..
    > unionfs: error accessing hidden directory '/tmp/initrd/lib/modules'
    > (error -2)
    > unionfs_read_super: error while parsing options (err = -2)
    > mount: special device unionfs does not exist
    > /tmp/modules.d is not a valid union.
    > /etc/init.d/unify: cd: 142: can't cd to /mnt/modules/
    > /tmp/modules.d is not a valid union.
    > * Loading User Settings..
    > tar: /mnt/etc.tar.gz: No such file or directory
    > cp: /tmp/etc.temp/*: No such file or directory
    > tar: /mnt/var.tar.gz: No such file or directory
    > cp: /tmp/var.temp/*: No such file or directory
    > * Moving to the new merged filesystem..
    > pivot_root: No such file or directory
    > * Initializing all services..
    > sed: no temp file
    > chroot: can
    > (none) login:
    > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
    >
    > Now I can log in and look around, but as far as me vi'ing any file or
    > even creating my own file, I can't do it, because its a read-only
    > system, which i beleive is my problem.
    >
    > Also on a side problem; this image file that im using seems to be the
    > only image file that I can actually dd to the CF card. All of the other
    > ones that I have downloaded from the internet, (net45xx-1.21.img,
    > gct-0.0.8.img) seem to either freeze up when the bios finishes counting
    > down from 5 to 1, or either gives me this output..
    >
    > "L 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99
    > 99 99 99 99 99 99 99 99 99 99"
    >
    > Please any help/ideas will be nice, also if anyone has a simple image
    > for the net4521 soekris board that is known to work, post it and i'll
    > give it a try and reply the outcome.
    >
    > Thank You,
    > ~Jimmie
    >


+ Reply to Thread