Lenovo Iomega ix2, Kernel does not start

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Lenovo Iomega ix2, Kernel does not start

Postby birnbaum » Fri Jan 16, 2015 7:38 pm

Hi, I am new to the ARM world.
I am currently trying to get Arch Linux ARM running on my NAS system (Lenovo Iomega ix2).
I found some instructions for installing debian on the predecessor of the NAS: http://iomega.nas-central.org/wiki/Ix2-200_Debian_Installation
So I thought it might be possible to run ARCH on the new version.

I already have serial access.

The U-Boot bootloader startup looks like this:
$this->bbcode_second_pass_code('', '
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** ix2-nand ** ** uboot_ver:0.0.8 **

** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:1024 MB
Found ADT7473, program PWM1 ... OK
Flash: 0 kB

Marvell Serial ATA Adapter
Integrated Sata device found


CPU : Marvell Feroceon (Rev 1)
Found kernel at 0x100000
Found initrd at 0x400000

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0
Marvell>>
')

I downloaded ArchLinuxARM-kirkwood-latest.tar.gz and unpacked it to a new ext3 partition on an USB stick.

then I set the following environment variables in uboot
$this->bbcode_second_pass_code('', '
bootargs=console=ttyS0,115200 root=/dev/sda1 rw rootwait pm_disable
bootcmd=usb start; ext2load usb 0 0x6400000 /boot/uImage; bootm 0x6400000
arcNumber=2097
')
I have no Idea about the arcNumber. Is this essential?
I found a list here: http://www.arm.linux.org.uk/developer/machines/download.php, however I do not know how to select one.

A complete printout of the u-boot environment looks like this (including some old environment stuff, from the previous debian system):
$this->bbcode_second_pass_code('', '
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
kernel_size=0x300000
loadzimage=nand read.e 0x40000 $(kernel_start) $(kernel_size)
loadinitrd=nand read.e 0x900000 $(initrd_start) $(initrd_size)
console=console=ttyS0,115200
bootargs_root=root=/dev/ram0
mk_mtdparts=setenv mtdparts mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),$(kernel_size)@$(kernel_start)(uImage),$(initrd_size)@$(initrd_start)(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
uboot_ver=0.0.8
serial_number=5563Y01011G150002EDJ0A1
ethaddr=00:D0:B8:1D:83:76
serialNo=EUAC0300FK
modelname=31997500
fw_ver=3.2.4.6905
serialno=0,01ZfiZHTESluw2tWMBQin8uZiQJRCbb+I7jJnqRZRTkuVgFWGdVt+P+fyOF4FVh7G5,EUAC0300FK,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.0.3/download_runin.sh
pre_path_conf=IX2/1.0.3/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.0.3
serverip=192.168.32.4
initrd_size=0x400000
bootargs=console=ttyS0,115200 root=/dev/sda1 rw rootwait pm_disable
bootcmd=usb start; ext2load usb 0 0x6400000 /boot/uImage; bootm 0x6400000
arcNumber=2097
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
kernel_start=0x100000
initrd_start=0x400000
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no

Environment size: 2178/131067 bytes
')
however, when I try to boot the kernel I can not see anything after "Starting kernel...":
$this->bbcode_second_pass_code('', '
Hit any key to stop autoboot: 0
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
...................
............................................................................
......................................................................................................
............................................................................................................................................................................................

4028544 bytes read
## Booting image at 06400000 ...
Image Name: Linux-3.18.1-1-ARCH
Created: 2014-12-23 9:43:46 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4028480 Bytes = 3.8 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...
')

I found some information about this problem here: http://developer.ridgerun.com/wiki/index.php/Common_Problems_-_Linux_kernel_doesnt_boot however, I do not really understand this Machine ID stuff and I have the feeling, that the serial port should be the right one, as I have seen it this way in the orinigal kernel:
$this->bbcode_second_pass_code('', 'Kernel command line: console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)')

However I forgot to backup the original boot environment before overwriting it. I only have an old startup log, with a successful Linux bootup:
$this->bbcode_second_pass_code('', '

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** ix2-nand ** ** uboot_ver:0.0.8 **

** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:1024 MB
Found ADT7473, program PWM1 ... OK
Flash: 0 kB

Marvell Serial ATA Adapter
Integrated Sata device found


CPU : Marvell Feroceon (Rev 1)
Found kernel at 0x100000
Found initrd at 0x400000

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0

NAND read: device 0 offset 0x100000, size 0x300000

Reading data from 0x3ff800 -- 100% complete.
3145728 bytes read: OK

NAND read: device 0 offset 0x400000, size 0x400000

Reading data from 0x7ff800 -- 100% complete.
4194304 bytes read: OK
## Booting image at 00040000 ...
Image Name: Linux-2.6.31.8
Created: 2014-11-18 0:24:43 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2481368 Bytes = 2.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00900000 ...
Image Name:
Created: 2014-11-25 20:06:24 UTC
Image Type: ARM Linux RAMDisk Image (bzip2 compressed)
Data Size: 2952765 Bytes = 2.8 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...

Linux version 2.6.31.8 (soho@bsoho088.iomegacorp.com) (gcc version 4.6.3 (crosstool-NG 1.18.0) ) Mon Nov 17 19:24:39 EST 2014 v0.0.9 Mon Nov 17 19:24:39 EST 2014
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 64960
Kernel command line: console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 244480KB available (4572K code, 365K data, 136K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1589.24 BogoMIPS (lpj=7946240)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
arm4regs : 1446.800 MB/sec
8regs : 868.000 MB/sec
32regs : 1120.800 MB/sec
xor: using function: arm4regs (1446.800 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size 1MB
PEX1_MEM ....base e8000000, size 128MB
PEX1_IO ....base f2100000, size 1MB
INTER_REGS ....base f1000000, size 1MB
NFLASH_CS ....base fa000000, size 2MB
SPI_CS ....base f4000000, size 16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size 2MB

Marvell Development Board (LSP Version KW_LSP_5.1.3_patch25)-- DB-88F6282A-BP Soc: 88F6282 A1 LE

Detected Tclk 200000000 and SysClk 533333333
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c8040740
PEX0 interface detected no Link.
PEX1 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1 126 MB/s
raid6: int32x2 185 MB/s
raid6: int32x4 172 MB/s
raid6: int32x8 187 MB/s
raid6: using algorithm int32x8 (187 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 2880K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000eca8)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.11 (for 2.6.31.14)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 483
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012100 (irq = 34) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Loading Marvell Ethernet Driver:
o Cached descriptors in DRAM
o DRAM SW cache-coherency
o 2 Giga ports supported
o Single RX Queue support - ETH_DEF_RXQ=0
o Single TX Queue support - ETH_DEF_TXQ=0
o TCP segmentation offload (TSO) supported
o Large Receive offload (LRO) supported
o Receive checksum offload supported
o Transmit checksum offload supported
o Proc tool API enabled
o Rx descripors: q0=256
o Tx descripors: q0=532
o Loading network interface(s):
o register under mv88fx_eth platform
o eth0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
mvSFlashInit ERROR: Unknown SPI flash device!
ERROR: sflash_probe - Failed to initialize the SFlash.Using Hamming 1-bit ECC for NAND device
NAND flash model -> K9K8G08U0D.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1318 at 0x00000a4c0000
Bad eraseblock 7969 at 0x00003e420000
7 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 7 MTD partitions on "nand_mtd":
0x000000000000-0x000000080000 : "uboot"
0x0000000a0000-0x0000000c0000 : "env"
0x0000000c0000-0x0000000e0000 : "env2"
0x000000100000-0x000000400000 : "uImage"
0x000000400000-0x000000800000 : "initrd"
0x000000800000-0x000040000000 : "boot"
0x000000000000-0x000040000000 : "flash"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473 0-002e: adt7473 chip found
iBoard_model 2
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2015-01-16 12:12:56 UTC (1421410376)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: bzip2 image found at block 0
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
VFS: Mounted root (ext2 filesystem) on device 1:0.
Looking for shell in cmdline: console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
Make node for mtd devices
cat: can't open '/sys/class/block/sda/removable': No such file or directory
cat: can't open '/sys/class/block/sdb/removable': No such file or directory
FLASH based system detected
Create fw_env.config in /etc
Model name is ix2-ng
UBI: attaching mtd5 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd5 to ubi0
UBI: MTD device name: "boot"
UBI: MTD device size: 1016 MiB
UBI: number of good PEBs: 8126
UBI: number of bad PEBs: 2
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 0
UBI: total number of reserved PEBs: 8126
UBI: number of PEBs reserved for bad PEB handling: 81
UBI: max/mean erase counter: 3/1
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 612
UBI device number 0, total 8126 LEBs (1048449024 bytes, 999.9 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)
mdadm: No devices to examine
cat: can't open '/sys/class/block///size': No such file or directory
mdadm: No devices to examine
cat: can't open '/sys/class/block///size': No such file or directory
Valid Disk 1 in md0:
Valid Disk 2 in md0:
USB Device node is /dev/sda1
Checking to see the if the reset button is pressed or not
scsi 2:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] 16361472 512-byte logical blocks: (8.37 GB/7.80 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
Checking for valid image on system
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "boot"
UBIFS: file system size: 1035288576 bytes (1011024 KiB, 987 MiB, 8024 LEBs)
UBIFS: journal size: 33546240 bytes (32760 KiB, 31 MiB, 260 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 4952683 bytes (4836 KiB)
md: md0 stopped.
mdadm: stopped /dev/md0
mdadm: /dev/md0 not identified in config file.
No volume groups found
Mount BFDlv to /mnt/boot on ix2-ng NAND
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/md0_vg/BFDlv is mounted.
e2fsck: No such file or directory while trying to open /dev/md0_vg/BFDlv
Possibly non-existent device?
mount: mounting /dev/md0_vg/BFDlv on sysroot/mnt/boot failed: No such file or directory
Copy dev node to /sysroot/dev
Found Valid EMC Image in disk...
Mounting apps image...
Mounting config image...
Check config filesystem
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/loop1 is mounted.
Copying System.map...
No need to create fw_env.config
No need to create fw_env.config
Constructing root filesystem...
Bootstrapping ...
rootdir=/
table='/usr/local/cfg/device_table.txt'
makedevs: line 42: chown failed for /bin/busybox: Read-only file system
makedevs: line 49: regular file '/usr/share/udhcpc/default.script' does not exist: No such file or directory
makedevs: line 55: Couldnt create node /dev/null: File exists
makedevs: line 56: Couldnt create node /dev/zero: File exists
makedevs: line 58: Couldnt create node /dev/urandom: File exists
makedevs: line 61: Couldnt create node /dev/loop0: File exists
makedevs: line 61: Couldnt create node /dev/loop1: File exists
makedevs: line 61: Couldnt create node /dev/loop2: File exists
makedevs: line 64: Couldnt create node /dev/console: File exists
makedevs: line 66: Couldnt create node /dev/tty2: File exists
makedevs: line 66: Couldnt create node /dev/tty3: File exists
makedevs: line 66: Couldnt create node /dev/tty4: File exists
makedevs: line 71: Couldnt create node /dev/ttyS0: File exists
makedevs: line 71: Couldnt create node /dev/ttyS1: File exists
makedevs: line 86: Couldnt create node /dev/mtd0: File exists
makedevs: line 86: Couldnt create node /dev/mtd1: File exists
makedevs: line 86: Couldnt create node /dev/mtd2: File exists
makedevs: line 86: Couldnt create node /dev/mtd3: File exists
makedevs: line 86: Couldnt create node /dev/mtd4: File exists
makedevs: line 86: Couldnt create node /dev/mtd5: File exists
makedevs: line 123: Couldnt create node /dev/sda: File exists
makedevs: line 124: Couldnt create node /dev/sda1: File exists
makedevs: line 125: Couldnt create node /dev/sdb: File exists
makedevs: line 126: Couldnt create node /dev/sdb1: File exists
makedevs: line 127: Couldnt create node /dev/sdc: File exists
makedevs: line 128: Couldnt create node /dev/sdc1: File exists
makedevs: line 190: Couldnt create node /dev/md0: File exists
makedevs: line 191: Couldnt create node /dev/md1: File exists
warning: failed to read mtab
Loading ext4...
Loading xfs...
SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
Loading isofs...
Loading udf...
Loading ufsd...
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd: driver 8.5 (Nov 17 2014 19:43:18) LBD=ON with delayalloc with ioctl loaded at bf101000
NTFS support included
Hfs+/HfsX support included
Built for: EMC_ix2_2Loading btusb...

Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: Generic Bluetooth USB driver ver 0.5
usbcore: registered new interface driver btusb
## Error: "hwdata" not defined
Initialization complete.
Freeing init memory: 136K
INIT: version 2.88 booting
INIT: /etc/inittab[63]: missing action field
Running file /etc/init.d/rcS
Running file /etc/init.d/rc
Running file /etc/rcS.d/S02hostname.sh
Running file /etc/rcS.d/S02mountkernfs.sh
[FAIL] udev requires a kernel >= 2.6.32, not started ... failed!
failed!
Running file /etc/rcS.d/S04mountdevsubfs.sh
Running file /etc/rcS.d/S07hdparm
[ ok ] Setting parameters of disc: (none).
Running file /etc/rcS.d/S11hwclock.sh
[info] Setting the system clock.
[info] System Clock set to: Fri Jan 16 12:13:23 UTC 2015.
Running file /etc/rcS.d/S12mtab.sh
Running file /etc/init.d/mountkernfs.sh
Running file /etc/init.d/mountkernfs.sh
Running file /etc/init.d/mountdevsubfs.sh
Running file /etc/init.d/mountdevsubfs.sh
Running file /etc/rcS.d/S30checkfs.sh
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck 1.42.5 (29-Jul-2012)
done.
Running file /etc/rcS.d/S30procps
[....] Setting kernel variables ...Running file /etc/rcS.d/S35mountall.sh
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
Running file /etc/rcS.d/S36mountall-bootclean.sh
[ ok ] Cleaning up temporary files... /tmp.
Running file /etc/rcS.d/S36udev-mtab
cp: cannot stat `/etc/network/dhcp/*': No such file or directory
dhclient host identical
Running file /etc/rcS.d/S40networking
[ ok ] Configuring network interfaces...done.
Running file /etc/rcS.d/S43rpcbind
[ ok ] Starting rpcbind daemon....
Running file /etc/rcS.d/S44nfs-common
[FAIL] Starting NFS common utilities: statd failed!
Running file /etc/rcS.d/S45mountnfs.sh
Running file /etc/rcS.d/S46mountnfs-bootclean.sh
[ ok ] Cleaning up temporary files....
Running file /etc/rcS.d/S55bootmisc.sh
Running file /etc/rcS.d/S55urandom
INIT: Entering runlevel: 2
Running file /etc/init.d/rc
Running file /etc/rc2.d/S10rsyslog
[ ok ] Starting enhanced syslogd: rsyslogd.
Running file /etc/rc2.d/S12dbus
chown: invalid user: `messagebus'
Running file /etc/rc2.d/S20nfs-common
[FAIL] Starting NFS common utilities: statd failed!
Running file /etc/rc2.d/S20nfs-kernel-server
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
Running file /etc/rc2.d/S20smartmontools
Running file /etc/rc2.d/S20sysfsutils
[ ok ] Setting sysfs variables....
Running file /etc/rc2.d/S23ntp
[....] Starting NTP server: ntpdRunning file /etc/rc2.d/S25bluetooth
[....] Starting bluetooth: bluetoothd rfcommBluetooth: L2CAP ver 2.13
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
. ok
Starting netplugd...
eth0: started
ln: failed to create symbolic link `/etc/samba/smb.conf': File exists
Starting sshd: OK
hostnamed begin to start...
Checking Netwrok interface link status...
Warning : Network Link Is Not Available...
## Error: "hwdata" not defined
hostnamed finished
Starting executord - appmd
export proxy environmental variables
Done.
cups: started scheduler.
Running file /etc/rc2.d/S99rc.local
Running file /etc/rc2.d/S99rmnologin

Debian GNU/Linux 7 LenovoIX2 ttyS0

LenovoIX2 login: root
Password:
root@LenovoIX2:/# ls /dev
btns mtd7 scd7 sdc3 sdf12 sdi sdk6 sdn2 tty1
console mtdblock0 scd8 sdc4 sdf13 sdi1 sdk7 sdn3 tty2
fb0 mtdblock1 scd9 sdc5 sdf14 sdi10 sdk8 sdn4 tty3
fb1 mtdblock2 sda sdc6 sdf2 sdi11 sdk9 sdn5 tty4
fb2 mtdblock3 sda1 sdc7 sdf3 sdi12 sdl sdn6 tty5
fb3 net sda10 sdc8 sdf4 sdi13 sdl1 sdn7 tty6
hda null sda11 sdc9 sdf5 sdi14 sdl10 sdn8 tty7
hda1 pbi_cf_dev.sh sda12 sdd sdf6 sdi2 sdl11 sdn9 ttyP0
hda10 psaux sda13 sdd1 sdf7 sdi3 sdl12 sdo ttyP1
hda11 ptmx sda14 sdd10 sdf8 sdi4 sdl13 sdo1 ttyP2
hda12 pts sda2 sdd11 sdf9 sdi5 sdl14 sdo10 ttyP3
hda13 ptyp0 sda3 sdd12 sdg sdi6 sdl2 sdo11 ttyS0
hda14 ptyp1 sda4 sdd13 sdg1 sdi7 sdl3 sdo12 ttyS1
hda2 ptyp2 sda5 sdd14 sdg10 sdi8 sdl4 sdo13 ttyS2
hda3 ptyp3 sda6 sdd2 sdg11 sdi9 sdl5 sdo14 ttyS3
hda4 ptyp4 sda7 sdd3 sdg12 sdj sdl6 sdo2 ttyp0
hda5 ptyp5 sda8 sdd4 sdg13 sdj1 sdl7 sdo3 ttyp1
hda6 ptyp6 sda9 sdd5 sdg14 sdj10 sdl8 sdo4 ttyp2
hda7 ptyp7 sdb sdd6 sdg2 sdj11 sdl9 sdo5 ttyp3
hda8 ptyp8 sdb1 sdd7 sdg3 sdj12 sdm sdo6 ttyp4
hda9 ptyp9 sdb10 sdd8 sdg4 sdj13 sdm1 sdo7 ttyp5
hiddev0 ram sdb11 sdd9 sdg5 sdj14 sdm10 sdo8 ttyp6
i2c-0 ram0 sdb12 sde sdg6 sdj2 sdm11 sdo9 ttyp7
ic2-1 ram1 sdb13 sde1 sdg7 sdj3 sdm12 sdp ttyp8
input ram2 sdb14 sde10 sdg8 sdj4 sdm13 sdp1 ttyp9
kmem ram3 sdb2 sde11 sdg9 sdj5 sdm14 sdp10 ubi0
log random sdb3 sde12 sdh sdj6 sdm2 sdp11 ubi_ctrl
loop0 rtc sdb4 sde13 sdh1 sdj7 sdm3 sdp12 urandom
loop1 rtc0 sdb5 sde14 sdh10 sdj8 sdm4 sdp13 usblp0
loop2 scd0 sdb6 sde2 sdh11 sdj9 sdm5 sdp14 usblp1
mapper scd1 sdb7 sde3 sdh12 sdk sdm6 sdp2 usblp2
md0 scd10 sdb8 sde4 sdh13 sdk1 sdm7 sdp3 usblp3
md1 scd11 sdb9 sde5 sdh14 sdk10 sdm8 sdp4 xconsole
mem scd12 sdc sde6 sdh2 sdk11 sdm9 sdp5 zero
mtd0 scd13 sdc1 sde7 sdh3 sdk12 sdn sdp6
mtd1 scd14 sdc10 sde8 sdh4 sdk13 sdn1 sdp7
mtd2 scd2 sdc11 sde9 sdh5 sdk14 sdn10 sdp8
mtd3 scd3 sdc12 sdf sdh6 sdk2 sdn11 sdp9
mtd4 scd4 sdc13 sdf1 sdh7 sdk3 sdn12 shm
mtd5 scd5 sdc14 sdf10 sdh8 sdk4 sdn13 tty
mtd6 scd6 sdc2 sdf11 sdh9 sdk5 sdn14 tty0
')

I will be very happy, if someone could point me in the right direction. Is it even possible to run the provided Arch Linux ARM kernels on not explicitly supported platforms?
birnbaum
 
Posts: 5
Joined: Fri Jan 16, 2015 7:08 pm

Re: Lenovo Iomega ix2, Kernel does not start

Postby pepedog » Fri Jan 16, 2015 8:42 pm

Can you see what env default -a does, it resets to default but not permanent until you saveenv
Then you type boot, reset loads the save environment then boots

So make changes and boot, not permanent unless you saveenv
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Lenovo Iomega ix2, Kernel does not start

Postby birnbaum » Fri Jan 16, 2015 9:00 pm

$this->bbcode_second_pass_quote('', '
')Can you see what env default -a does


$this->bbcode_second_pass_code('', '
Marvell>> env default -a
Unknown command 'env' - try 'help'
')

It seems, my version of U-Boot does not feature an "env" command.

according to help the following commands are available:
$this->bbcode_second_pass_code('', '
Marvell>> help
? - alias for 'help'
SatR - sample at reset sub-system, relevent for DB only
base - print or set address offset
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootext2 dev:boot_part1,boot_part2 addr boot_image linux_dev_name
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bubt - Burn an image on the Boot Nand Flash.
chpart - change active partition
cmp - memory compare
cmpm - Compare Memory
cp - memory copy
cpumap - Display CPU memory mapping settings.
crc32 - checksum calculation
date - get/set/reset date & time
dclk - Display the MV device CLKs.
dhcp - invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo - echo args to console
eeprom - EEPROM sub-system
erase - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
fi - Find value in the memory.
flinfo - print FLASH memory information
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
g - start application at cached address 'addr'(default addr 0x40000)
go - start application at address 'addr'
help - print online help
icrc32 - checksum calculation
ide - IDE sub-system
iloop - infinite loop on address range
imd - i2c memory display
iminfo - print header information for application image
imm[.b, .s, .w, .l] - i2c memory modify (auto-incrementing)
imw - memory write (fill)
inm - memory modify (constant address)
iprobe - probe to discover valid I2C chip addresses
ir - reading and changing MV internal register values.
loop - infinite loop on address range
ls - list files in a directory (default /)
map - Diasplay address decode windows
md - memory display
me - PCI master enable
mm - memory modify (auto-incrementing)
mmcinit - init mmc card
mp - map PCI BAR
mtdparts- define flash/nand partitions
mtest - simple RAM test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nbubt - Burn a boot loader image on the Boot Nand Flash.
nm - memory modify (constant address)
pci - list and access PCI Configuration Space
phyRead - Read PCI-E Phy register
pciePhyWrite - Write PCI-E Phy register
phyRead - Read Phy register
phyWrite - Write Phy register
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
rcvr - Satrt recovery process (Distress Beacon with TFTP server)
reset - Perform RESET of the CPU
resetenv - Return all environment variable to default.
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
se - PCI Slave enable
setenv - set environment variables
sflash - read, write or erase the external SPI Flash.
sg - scanning the PHYs status
sp - Scan PCI bus.
switchRegRead - Read switch register
switchRegWrite - Write switch register
Temp - read chip Tj temp
tftpboot- boot image via network using TFTP protocol
usb - USB sub-system
usbboot - boot from USB device
version - print monitor version
Marvell>> help setenv
setenv name value ...
- set environment variable 'name' to 'value ...'
setenv name
- delete environment variable 'name'

Marvell>> help resetenv
resetenv
Erase the environemnt variable sector.

Marvell>>
')

There is a command "resetenv", but according to the help text, it just deletes the whole environment.

Do you think, reading the old environment is necesary to boot into the kernel used by ARCH? I only changed the following:

bootargs > changed
bootcmd > changed
arcNumber > added (was not set before)
mainlineLinux > changed (was no before)
birnbaum
 
Posts: 5
Joined: Fri Jan 16, 2015 7:08 pm

Re: Lenovo Iomega ix2, Kernel does not start

Postby birnbaum » Fri Jan 16, 2015 9:39 pm

I now tried to load the stock Linux kernel, shipped with the device, which still resides in NAND memory.
I retrieved the addresses of the kernel image + ramdisk image from the log, where the original linux sucessfully booted.
I used the kernel parameters the kernel printed on bootup and stored them to the u-boot "bootargs" environment variable.
Loaded the images to ram and tried to boot.
$this->bbcode_second_pass_code('', '
Marvell>> setenv bootargs console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none
Marvell>> nand read 00040000 0x100000 0x300000

NAND read: device 0 offset 0x100000, size 0x300000
3145728 bytes read: OK
Marvell>> nand read 00900000 0x400000 0x400000

NAND read: device 0 offset 0x400000, size 0x400000
4194304 bytes read: OK
Marvell>> bootm 00040000 00900000
## Booting image at 00040000 ...
Image Name: Linux-2.6.31.8
Created: 2014-11-18 0:24:43 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2481368 Bytes = 2.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00900000 ...
Image Name:
Created: 2014-11-25 20:06:24 UTC
Image Type: ARM Linux RAMDisk Image (bzip2 compressed)
Data Size: 2952765 Bytes = 2.8 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...
')

Still stopping after "Starting kernel ..." :(

so it seems, that I am doing something wrong with booting.
(I am getting really angry at myself for not looking at the original u-boot environment)
birnbaum
 
Posts: 5
Joined: Fri Jan 16, 2015 7:08 pm

Re: Lenovo Iomega ix2, Kernel does not start

Postby WarheadsSE » Sat Jan 17, 2015 2:02 am

Remember to set mainline back to no
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Lenovo Iomega ix2, Kernel does not start

Postby birnbaum » Sat Jan 17, 2015 8:50 am

$this->bbcode_second_pass_quote('', 'R')emember to set mainline back to no


Thanky you, but still not working.
birnbaum
 
Posts: 5
Joined: Fri Jan 16, 2015 7:08 pm

Re: Lenovo Iomega ix2, Kernel does not start

Postby birnbaum » Mon Jan 19, 2015 12:26 am

$this->bbcode_second_pass_quote('', 'R')emember to set mainline back to no


oh sorry. somehow, it looks like I did something wrong with my first test, setting mainlineLinux back to no.
I tried it again today and the old kernel is booting fine now.

So to summarize:
mainlineLinux = yes
=> original kernel does not start (freeze at Starting Kernel...)
=> new Arch kernel also does not start (freeze at Starting Kernel...)
mainlineLinux = no
=> oriiginal kernel starts fine
=> new Arch kernel does not start (freeze at Starting Kernel...)

Can anyone tell me, what effect the mainlineLinux variable has on starting the kernel?
I am desperately hoping to get the Arch kernel running.
birnbaum
 
Posts: 5
Joined: Fri Jan 16, 2015 7:08 pm
Top


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 46 guests