General NAS-Central Forums

Welcome to the NAS community
It is currently Mon Dec 11, 2017 7:15 pm

All times are UTC




Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: Fri Jul 22, 2016 7:34 pm 
Offline

Joined: Fri Jul 15, 2016 10:51 am
Posts: 11
I have tried to build several different kernels. But none of them works.

Building kernel on ix4-300d:
Code:
sudo apt-get -y install bc curl gcc git libncurses5-dev lzop make u-boot-tools
cd <<dir with +4GB of free space>>
curl -sSL https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.18.37.tar.xz | unxz | tar -xvf -
cd linux-3.18.37
make mv78xx0_defconfig
make -j 4 uImage zImage dtbs modules
cat arch/arm/boot/zImage arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts > zud
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n lenovo-ix4-300d-02 -d zud /media/boot/uImage


Booting kernel:
Code:
Marvell>> usb reset;fatload usb 0:1 $loadaddr uImage;setenv bootargs $console $mtdparts root=/dev/sda2 rw; bootm $loadaddr;
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
reading uImage
...................................................................................................................................................................................................
.........
......................................................................

2820784 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   lenovo-ix4-300d-02
   Created:      2016-07-22  19:26:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2820720 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...


Nothing more happens... No console output. No network activity.

Any suggestions?


Top
 Profile  
 
PostPosted: Fri Jul 22, 2016 10:46 pm 
Offline

Joined: Wed Jun 18, 2014 9:38 pm
Posts: 35
It seems you're no getting the console on on serial have you looked at the default configuration created if serial console is enable at kernel configuratio. Once done try booting if still not and you're sure kernel serial is compiled in kernel (not as a module) than also check the $console args format and ensure it match kernel 3.xx kernel syntax


Top
 Profile  
 
PostPosted: Sat Jul 23, 2016 5:36 pm 
Offline

Joined: Fri Jul 15, 2016 10:51 am
Posts: 11
When I boot the kernel from Lenovo that is working, I get this in dmesg:
Code:
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xd0012000 (irq = 41) is a 16550A
console [ttyS0] enabled


The kernels I build already had this option enabled:
Code:
Console on 8250/16550 and compatible serial port


And this $console arg:
Code:
set console console=ttyS0,115200



I also tried to boot a kernel build these ekstra options
Code:
cat << EOF >> .config
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_VT_HW_CONSOLE_BINDING=n
CONFIG_HW_CONSOLE=y
CONFIG_SERIAL_EARLYCON_ARM_SEMIHOST=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_ARC=y
CONFIG_SERIAL_ARC_CONSOLE=y
SERIAL_ARC_NR_PORTS=1
EOF


Tried with console = ttyS0, ttyS1 and ttyAMA0.


Top
 Profile  
 
PostPosted: Fri Jul 29, 2016 7:53 am 
Offline

Joined: Fri Jul 15, 2016 10:51 am
Posts: 11
I have returned the NAS to the store.


Top
 Profile  
 
PostPosted: Thu Jan 12, 2017 8:46 am 
Offline

Joined: Sun Jan 31, 2016 2:53 pm
Posts: 7
Firstly, thank you for all your work with this.. its good to see people helping others figure stuff out.

I have been trying to follow the guide on your wiki, but have run into some problems.

I am able to connect to the NAS via UART and stop to boot, but the images I am creating following this guide https://blog.night-shade.org.uk/2013/12 ... hf-rootfs/ don't seem to boot correctly, is there any chance of a link to the kernel you used and compiled?

Even better a dd image that I can write to a USB so that it boots the kernel and a debian rootfs? Please help, I am still learning linux and I got this NAS from work... Once I can get SSH access with my own kernel I can sort out everything I need...



If you were to recompile a kernel for use with this today.. which would you use?
Also, which linux distro for the rootfs? I want it to be minimal and I can build from that. Thanks again.

When I log into the stock firmware via SSH using serial, apt-get update doesnt work even as root.

Code:
Ign http://ftp.us.debian.org wheezy/non-free Translation-en
Fetched 2 B in 8s (0 B/s)
E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
root@ix4-300d:/# su
sh-4.2# sudo apt-get install
sh: sudo: command not found
sh-4.2# apt-get install
E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?



I have been working on this for a long time haha on and off so any help is awesome :D


Top
 Profile  
 
PostPosted: Thu Jan 12, 2017 9:56 pm 
Offline

Joined: Wed Jun 18, 2014 9:38 pm
Posts: 35
Hello.

Thanks for your feedback, the current port is fully integrated to linux mainline... so just compiling it and booting it will do. If you're looking for a arm debian you can take any raspdebian distribution that you can just copy to the linux partition. i won't have time to provide a full all done USB key.
Benoit


Top
 Profile  
 
PostPosted: Fri Jan 13, 2017 5:30 am 
Offline

Joined: Sun Jan 31, 2016 2:53 pm
Posts: 7
Thanks for the reply!

benoitm974 wrote:
Hello.

Thanks for your feedback, the current port is fully integrated to linux mainline... so just compiling it and booting it will do.
Benoit


Where can I compile it? I am having trouble.. I tried following the steps on my ubuntu machine as well as kali linux, but I can't get it to compile with your defconfig.

I followed this:

For building a kernel, download a mainline (3.15 or 3.16), apply the config attached, then apply DTS (copy it to arch/arm/boot/dts & edit the makefile to include this dts file as part of the dtbs make pahse) definition and do
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j7 dtbs
cat arch/arm/boot/zImage arch/arm/boot/dts/armada-xp-lenovo-ix4300d.dtb > zud
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n lenovo-ix4-300d-02 -d zud /tftpboot/uImage


I was trying to use the 3.18 kernel mentioned by another user.. are you saying just use the latest kernel? Can you just send me a link the uImage you use. Please, after I work it out I'll make a usb image for others to use.

I did manage to compile a kernel on ubuntu using the defconfig from your site and the previous commands the other user posted. I formatted a usb with 2 partitions 1 26M primary with the uImage on it and then a rootfs on 2nd part, but it seems the kernel wont work or its wrong format :((

Code:
Marvell>> usb reset;fatload usb 0:1 $loadaddr zImage;setenv bootargs $console $mtdparts root=/dev/sdb2 rw; bootm $loadaddr;
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
reading zImage

** Unable to read "zImage" from usb 0:1 **
Wrong Image Format for bootm command


Your kernel would be a nice help :(

Final edit:

Seems the command you give to boot has zImage in it when you need to use uImage. But after I start it just hangs on starting kernel, there is a rootfs ready on sdb2 so not sure

Code:
Marvell>> usb reset;fatload usb 0:1 $loadaddr uImage;setenv bootargs $console $mtdparts root=/dev/sdb2 rw; bootm $loadad

(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
reading uImage
....................................................................................................................................................................................................................................................................................

2827785 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   doufhax
   Created:      2017-01-13   9:27:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2827721 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...


Top
 Profile  
 
PostPosted: Fri Jan 13, 2017 10:36 am 
Offline

Joined: Sun Jan 31, 2016 2:53 pm
Posts: 7
Problem was I wassn't using the right defconfig, the generic 1 doesnt work, the 1 from your site works.

There is a weird issue though, for some reason I cant boot off the usb unless i reboot first, so a cold boot doesnt work.

During boot though, the rootfs I was using ran out of memory.

Code:
Unpacking openssh-server (from .../openssh-server_6.0p1-3ubuntu1_armhf.deb) ...
Out of memory: Kill process 3351 (dpkg) score 21 or sacrifice child
Killed process 3357 (frontend) total-vm:4976kB, anon-rss:1860kB, file-rss:2136kB
dpkg: error processing /root/debs/openssh-server_6.0p1-3ubuntu1_armhf.deb (--install):
 subprocess new pre-installation script was killed by signal (Killed)
.
.

Kernel panic - not syncing: Out of memory and no killable processes...

CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.18.37 #2
[<c0015218>] (unwind_backtrace) from [<c00114fc>] (show_stack+0x10/0x14)
[<c00114fc>] (show_stack) from [<c04622f4>] (dump_stack+0x88/0x9c)
[<c04622f4>] (dump_stack) from [<c0014134>] (handle_IPI+0x150/0x16c)
[<c0014134>] (handle_IPI) from [<c00086e4>] (armada_370_xp_handle_irq+0xa4/0xb8)
[<c00086e4>] (armada_370_xp_handle_irq) from [<c0011f80>] (__irq_svc+0x40/0x54)
Exception stack(0xdf457fa8 to 0xdf457ff0)
7fa0:                   dfbe0270 00000000 00019978 c001a6fc df456000 c0618484
7fc0: c06184cc c0468dfc c064f67f c053a6a0 00000001 00000000 00000000 df457ff0
7fe0: c000efd8 c004a650 60000013 ffffffff
[<c0011f80>] (__irq_svc) from [<c004a650>] (cpu_startup_entry+0xf8/0x144)
[<c004a650>] (cpu_startup_entry) from [<000087e4>] (0x87e4)
---[ end Kernel panic - not syncing: Out of memory and no killable processes...



Then it crashed..

Trying the stock rasberian crashes as well.


Top
 Profile  
 
PostPosted: Fri Jan 13, 2017 8:35 pm 
Offline

Joined: Sun Jan 31, 2016 2:53 pm
Posts: 7
Got it working with 4 drives in and flashed nand so it boots off a partition on first disk.

Next step is to try and get the lcd driver working.. cant compile it tho.


Top
 Profile  
 
PostPosted: Sun Jan 15, 2017 11:29 am 
Offline

Joined: Sun Jan 15, 2017 11:00 am
Posts: 13
doufas wrote:
Got it working with 4 drives in and flashed nand so it boots off a partition on first disk.

Next step is to try and get the lcd driver working.. cant compile it tho.


Dear Doufas,

I've get a non-working machine, with a broken display, without HDDs for free, but certainly it's not working.

I tried to recover it using Lifeline device imager, and an old 250GB Samsung HDD in slot 1. The process goes well. Start flashing, after a few minutes it's shutting down. It creates one 20 GB raw partition on the HDD and leave the rest unpartitioned.

After reboot, 3rd led lit (white), 2nd led flashing blue (hdd starts) then lit. Sometimes it asks for an IP from dhcp (I can ping it, but web interface refuse connection). Sometimes it doesn't even get ip.

So long story short: I'd like to try this bare debian on it. Honestly I ain't know anything about how to compile a kernel, etc. So sharing your images would highly appreciated :) I'd really like to try it. You are my only chance to make this thing operating.

Thank you!
Gyuri


Top
 Profile  
 
PostPosted: Mon Jan 16, 2017 5:03 pm 
Offline

Joined: Sun Jan 31, 2016 2:53 pm
Posts: 7
Gyuri wrote:
doufas wrote:
Got it working with 4 drives in and flashed nand so it boots off a partition on first disk.

Next step is to try and get the lcd driver working.. cant compile it tho.


Dear Doufas,

I've get a non-working machine, with a broken display, without HDDs for free, but certainly it's not working.

I tried to recover it using Lifeline device imager, and an old 250GB Samsung HDD in slot 1. The process goes well. Start flashing, after a few minutes it's shutting down. It creates one 20 GB raw partition on the HDD and leave the rest unpartitioned.

After reboot, 3rd led lit (white), 2nd led flashing blue (hdd starts) then lit. Sometimes it asks for an IP from dhcp (I can ping it, but web interface refuse connection). Sometimes it doesn't even get ip.

So long story short: I'd like to try this bare debian on it. Honestly I ain't know anything about how to compile a kernel, etc. So sharing your images would highly appreciated :) I'd really like to try it. You are my only chance to make this thing operating.

Thank you!
Gyuri


Sorry but there is no image and its quite complex. If you can connect by UART, then the rest is all here in 1 form or another.. use the 3.18 base kernel, compile it using the defconfig provided by OP (rename .config and copy). Look into cross compile ubuntu armhf. That will get you a zImage.
Then run script from ixd wiki to make uImage. You can boot this multiple ways using uboot.
Then this url to build a rootfs on same box: https://blog.night-shade.org.uk/2013/12 ... hf-rootfs/.
good luck....

Also Q for OP:
After I compiled your wimlcm i dont have /dev/lcm ... its the last thing id like to get working..


Top
 Profile  
 
PostPosted: Sat Jan 21, 2017 8:45 am 
Offline

Joined: Sun Jan 15, 2017 11:00 am
Posts: 13
Thanks for your encouragement! I almost did it :D

Here is what I already tried:
- using 3.18 and 4.4 kernel.
- copy rootfs to the 2nd partition of the pendrive, and load from there.
Code:
usb reset;fatload usb 0:1 $loadaddr uImage;setenv bootargs $console $mtdparts root=/dev/sda2 rw; bootm $loadaddr;

- re partition HDD, format 2nd partition (tried ext3,ext4) and copy rootfs there.
Code:
usb reset;fatload usb 0:1 $loadaddr uImage;setenv bootargs $console $mtdparts root=/dev/sdb2 rw; bootm $loadaddr;


And here is what i get:

Code:
BootROM 1.15
Booting from NAND flash
DDR3 Training Sequence - Ver 2.3.4
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER 2.3.2.6  **


U-Boot 2009.08 (Mar 04 2013 - 11:13:04) Marvell version:  2.3.2 PQ
U-Boot Addressing:
       Code:            00600000:006BFFF0
       BSS:             00708EC0
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: DB-78230-BP rev 2.0 Wistron
SoC:   MV78230 A0
       running 2 CPUs
       Custom configuration
CPU:   Marvell PJ4B (584) v7 (Rev 2) LE
       CPU # 0
       CPU @ 1333Mhz, L2 @ 667Mhz
       DDR @ 667Mhz, TClock @ 250Mhz
       DDR 32Bit Width, FastPath Memory Access
       DDR ECC Disabled
PEX 0.0(0): Root Complex Interface, Detected Link X4, GEN 1.1
PEX 1.0(1): Root Complex Interface, Detected Link X1, GEN 2.0
DRAM:  512 MB
       CS 0: base 0x00000000 size 512 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
NAND:  1024 MiB
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
FPU initialized to Run Fast Mode.
USB 0: Host Mode
USB 1: Host Mode
USB 2: Device Mode
Modules Detected:
MMC:   MRVL_MMC: 0
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> usb reset;fatload usb 0:1 $loadaddr uImage;setenv bootargs $console $mtdparts root=/dev/sdb2 rw; bootm $loadaddr;
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
reading uImage
...............................................................................................................................................................................................................................................................................................................................................................................

3761855 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   lenovo-ix4-300d-02
   Created:      2017-01-20  22:04:38 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3761791 Bytes =  3.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.4.43 (root@avdebian) (gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #1 SMP Fri Jan 20 23:00:03 CET 2017
CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine model: Lenovo Iomega ix4-300d
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @dfbd0000 s17356 r8192 d23604 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=armada-nand:0xe0000@0x0(uboot),0x20000@0xe0000(env),0x20000@0x100000(env2),0x400000@0x120000(zImage),0x400000@0x520000(initrd),0x3F200000@0xE00000(boot),0x40000000@0x0(flash) root=/dev/sdb2 rw
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512148K/524288K available (5145K kernel code, 253K rwdata, 1548K rodata, 280K init, 201K bss, 12140K reserved, 0K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc069177c   (6694 kB)
      .init : 0xc0692000 - 0xc06d8000   ( 280 kB)
      .data : 0xc06d8000 - 0xc0717540   ( 254 kB)
       .bss : 0xc0717540 - 0xc0749d0c   ( 202 kB)
Hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
L2C: DT/platform modifies aux control register: 0x1a696b10 -> 0x1a696b12
Aurora cache controller enabled, 16 ways, 1024 kB
Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a696b12
Switching to timer-based delay loop, resolution 40ns
sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x82c0 - 0x8318
mvebu-soc-id: MVEBU SoC ID=0x7823, Rev=0x1
mvebu-pmsu: Initializing Power Management Service Unit
Booting CPU 1
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (100.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
xor: measuring software checksum speed
   arm4regs  :  1077.600 MB/sec
   8regs     :   881.200 MB/sec
   32regs    :  1201.200 MB/sec
xor: using function: 32regs (1201.200 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
raid6: int32x1  gen()   142 MB/s
raid6: int32x1  xor()   242 MB/s
raid6: int32x2  gen()   223 MB/s
raid6: int32x2  xor()   259 MB/s
raid6: int32x4  gen()   290 MB/s
raid6: int32x4  xor()   247 MB/s
raid6: int32x8  gen()   355 MB/s
raid6: int32x8  xor()   233 MB/s
raid6: using algorithm int32x8 gen() 355 MB/s
raid6: .... xor() 233 MB/s, rmw enabled
raid6: using intx1 recovery algorithm
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 512 (order: 3, 32768 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-xp-pinctrl d0018000.pin-ctrl: registered pinctrl driver
irq: Cannot allocate irq_descs @ IRQ40, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ72, assuming pre-allocated
mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:05.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers disabled
PCI: bus2: Fast back to back transfers disabled
pci 0000:00:01.0: BAR 8: assigned [mem 0xf8000000-0xf80fffff]
pci 0000:00:05.0: BAR 8: assigned [mem 0xf8100000-0xf81fffff]
pci 0000:00:01.0: BAR 7: assigned [io  0x10000-0x10fff]
pci 0000:01:00.0: BAR 0: assigned [mem 0xf8000000-0xf80fffff 64bit]
pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
pci 0000:02:00.0: BAR 0: assigned [mem 0xf8100000-0xf8101fff 64bit]
pci 0000:00:05.0: PCI bridge to [bus 02]
pci 0000:00:05.0:   bridge window [mem 0xf8100000-0xf81fffff]
pci 0000:00:05.0: enabling device (0140 -> 0142)
mv_xor d0060900.xor: Marvell shared XOR driver
mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
mv_xor d00f0900.xor: Marvell shared XOR driver
mv_xor d00f0900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 20, base_baud = 15625000) is a 16550A
console [ttyS0] enabled
pci 0000:00:01.0: enabling device (0140 -> 0143)
sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
scsi host0: sata_mv
scsi host1: sata_mv
scsi host2: sata_mv
scsi host3: sata_mv
ata1: SATA max UDMA/133 mmio m1048576@0xf8000000 port 0xf8022000 irq 89
ata2: SATA max UDMA/133 mmio m1048576@0xf8000000 port 0xf8024000 irq 89
ata3: SATA max UDMA/133 mmio m1048576@0xf8000000 port 0xf8026000 irq 89
ata4: SATA max UDMA/133 mmio m1048576@0xf8000000 port 0xf8028000 irq 89
pxa3xx-nand d00d0000.nand: This platform can't do DMA on this device
nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd3
nand: Samsung NAND 1GiB 3,3V 8-bit
nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
pxa3xx-nand d00d0000.nand: ECC strength 1, ECC step size 512
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
7 ofpart partitions found on MTD device pxa3xx_nand-0
Creating 7 MTD partitions on "pxa3xx_nand-0":
0x000000000000-0x0000000e0000 : "u-boot"
0x0000000e0000-0x000000100000 : "u-boot-env"
0x000000100000-0x000000120000 : "u-boot-env2"
0x000000120000-0x000000520000 : "zImage"
0x000000520000-0x000000920000 : "initrd"
0x000000e00000-0x000040000000 : "boot"
0x000000000000-0x000040000000 : "flash"
spi_gpio spi3: gpio-miso property not found, switching to no-rx mode
libphy: Fixed MDIO Bus: probed
libphy: orion_mdio_bus: probed
mvneta d0070000.ethernet eth0: Using random mac address fa:1e:08:3e:80:90
mvneta d0074000.ethernet eth1: Using random mac address 8a:e1:1d:69:82:2e
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci d0050000.usb: EHCI Host Controller
orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
orion-ehci d0050000.usb: irq 26, io mem 0xd0050000
orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
orion-ehci d0051000.usb: EHCI Host Controller
orion-ehci d0051000.usb: new USB bus registered, assigned bus number 2
orion-ehci d0051000.usb: irq 27, io mem 0xd0051000
orion-ehci d0051000.usb: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci_hcd 0000:02:00.0: xHCI Host Controller
xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:02:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
xhci_hcd 0000:02:00.0: xHCI Host Controller
xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 4
usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usbcore: registered new interface driver usb-storage
rtc-mv d0010300.rtc: rtc core: registered d0010300.rtc as rtc0
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.4
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc1
adt7475 0-002e: ADT7473 device, revision 0
adt7475 0-002e: Optional features: fan4 pwm2
orion_wdt: Initial timeout 171 sec
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
md: multipath personality registered for level -4
device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
device-mapper: multipath: version 1.10.0 loaded
device-mapper: multipath round-robin: version 1.0.0 loaded
device-mapper: raid: Loading target version 1.7.0
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
input: gpio-keys as /devices/platform/gpio-keys/input/input0
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
ALSA device list:
  No soundcards found.
usb 1-1: new high-speed USB device number 2 using orion-ehci
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi host4: usb-storage 1-1:1.0
scsi 4:0:0:0: Direct-Access                               1.00 PQ: 0 ANSI: 4
sd 4:0:0:0: [sda] 15171584 512-byte logical blocks: (7.77 GB/7.23 GiB)
sd 4:0:0:0: [sda] Write Protect is off
sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2
sd 4:0:0:0: [sda] Attached SCSI removable disk
ata1: link is slow to respond, please be patient (ready=0)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  0-33 PQ: 0 ANSI: 5
sd 0:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/233 GiB)
sd 0:0:0:0: [sdb] Write Protect is off
sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2 sdb3
sd 0:0:0:0: [sdb] Attached SCSI disk
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
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.
EXT4-fs (sdb2): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 8:18.
Freeing unused kernel memory: 280K (c0692000 - c06d8000)
random: nonblocking pool is initialized


After this, nothing happens. Could you give me a hint how to go further?


Top
 Profile  
 
PostPosted: Sat Jan 21, 2017 9:48 am 
Offline

Joined: Sun Jan 15, 2017 11:00 am
Posts: 13
Update: If I use wheezy rootfs & and kernel 4.4 then I can login! But network is not available yet.
edit: after configuring /etc/network/interfaces everything is fine!

ps: first I tried with jessie.


Top
 Profile  
 
PostPosted: Sat Jan 21, 2017 3:33 pm 
Offline

Joined: Sun Jan 15, 2017 11:00 am
Posts: 13
I followed the instructions from the wiki about "Flashing for booting custom kernel from nand". Flashing went well, but as you can see below I couldn't mount rootfs.

My question is that how can I tell the kernel, that the rootfs is on /dev/sda2?

Thanks,
Gyuri

Code:
BootROM 1.15
Booting from NAND flash
DDR3 Training Sequence - Ver 2.3.4
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER 2.3.2.6  **


U-Boot 2009.08 (Mar 04 2013 - 11:13:04) Marvell version:  2.3.2 PQ
U-Boot Addressing:
       Code:            00600000:006BFFF0
       BSS:             00708EC0
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: DB-78230-BP rev 2.0 Wistron
SoC:   MV78230 A0
       running 2 CPUs
       Custom configuration
CPU:   Marvell PJ4B (584) v7 (Rev 2) LE
       CPU # 0
       CPU @ 1333Mhz, L2 @ 667Mhz
       DDR @ 667Mhz, TClock @ 250Mhz
       DDR 32Bit Width, FastPath Memory Access
       DDR ECC Disabled
PEX 0.0(0): Root Complex Interface, Detected Link X4, GEN 1.1
PEX 1.0(1): Root Complex Interface, Detected Link X1, GEN 2.0
DRAM:  512 MB
       CS 0: base 0x00000000 size 512 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
NAND:  1024 MiB
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
FPU initialized to Run Fast Mode.
USB 0: Host Mode
USB 1: Host Mode
USB 2: Device Mode
Modules Detected:
MMC:   MRVL_MMC: 0
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x120000, size 0x400000
 4194304 bytes read: OK

NAND read: device 0 offset 0x520000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00040000 ...
   Image Name:   lenovo-ix4-300d-02
   Created:      2017-01-20  22:04:38 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3761791 Bytes =  3.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:
   Created:      2014-07-09  17:11:26 UTC
   Image Type:   ARM Linux RAMDisk Image (bzip2 compressed)
   Data Size:    2994837 Bytes =  2.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.4.43 (root@avdebian) (gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #1 SMP Fri Jan 20 23:00:03 CET 2017
CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine model: Lenovo Iomega ix4-300d
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @dfbd0000 s17356 r8192 d23604 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=armada-nand:0xe0000@0x0(uboot),0x20000@0xe0000(env),0x20000@0x100000(env2),0x400000@0x120000(zImage),0x400000@0x520000(initrd),0x3F200000@0xE00000(boot),0x40000000@0x0(flash) root=/dev/ram rw mem=512M ramdisk_size=4194304 ramdisk_blocksize=1024 ip=:::DB88FXX81:eth0:none mv_net_config=2,(00:50:43:11:11:11,0:1),mtu=1500
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 509220K/524288K available (5145K kernel code, 253K rwdata, 1548K rodata, 280K init, 201K bss, 15068K reserved, 0K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc069177c   (6694 kB)
      .init : 0xc0692000 - 0xc06d8000   ( 280 kB)
      .data : 0xc06d8000 - 0xc0717540   ( 254 kB)
       .bss : 0xc0717540 - 0xc0749d0c   ( 202 kB)
Hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
L2C: DT/platform modifies aux control register: 0x1a696b10 -> 0x1a696b12
Aurora cache controller enabled, 16 ways, 1024 kB
Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a696b12
Switching to timer-based delay loop, resolution 40ns
sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x82c0 - 0x8318
mvebu-soc-id: MVEBU SoC ID=0x7823, Rev=0x1
mvebu-pmsu: Initializing Power Management Service Unit
Booting CPU 1
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (100.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
xor: measuring software checksum speed
   arm4regs  :  1077.600 MB/sec
   8regs     :   881.200 MB/sec
   32regs    :  1201.200 MB/sec
xor: using function: 32regs (1201.200 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
raid6: int32x1  gen()   142 MB/s
raid6: int32x1  xor()   242 MB/s
raid6: int32x2  gen()   223 MB/s
raid6: int32x2  xor()   259 MB/s
raid6: int32x4  gen()   290 MB/s
raid6: int32x4  xor()   247 MB/s
raid6: int32x8  gen()   355 MB/s
raid6: int32x8  xor()   233 MB/s
raid6: using algorithm int32x8 gen() 355 MB/s
raid6: .... xor() 233 MB/s, rmw enabled
raid6: using intx1 recovery algorithm
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Unpacking initramfs...
Initramfs unpacking failed: compression method bzip2 not configured
Freeing initrd memory: 2928K (c2000000 - c22dc000)
futex hash table entries: 512 (order: 3, 32768 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-xp-pinctrl d0018000.pin-ctrl: registered pinctrl driver
irq: Cannot allocate irq_descs @ IRQ40, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ72, assuming pre-allocated
mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:05.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers disabled
PCI: bus2: Fast back to back transfers disabled
pci 0000:00:01.0: BAR 8: assigned [mem 0xf8000000-0xf80fffff]
pci 0000:00:05.0: BAR 8: assigned [mem 0xf8100000-0xf81fffff]
pci 0000:00:01.0: BAR 7: assigned [io  0x10000-0x10fff]
pci 0000:01:00.0: BAR 0: assigned [mem 0xf8000000-0xf80fffff 64bit]
pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
pci 0000:02:00.0: BAR 0: assigned [mem 0xf8100000-0xf8101fff 64bit]
pci 0000:00:05.0: PCI bridge to [bus 02]
pci 0000:00:05.0:   bridge window [mem 0xf8100000-0xf81fffff]
pci 0000:00:05.0: enabling device (0140 -> 0142)
mv_xor d0060900.xor: Marvell shared XOR driver
mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
mv_xor d00f0900.xor: Marvell shared XOR driver
mv_xor d00f0900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 20, base_baud = 15625000) is a 16550A
console [ttyS0] enabled
pci 0000:00:01.0: enabling device (0140 -> 0143)
sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
scsi host0: sata_mv
scsi host1: sata_mv
scsi host2: sata_mv
scsi host3: sata_mv
ata1: SATA max UDMA/133 mmio m1048576@0xf8000000 port 0xf8022000 irq 89
ata2: SATA max UDMA/133 mmio m1048576@0xf8000000 port 0xf8024000 irq 89
ata3: SATA max UDMA/133 mmio m1048576@0xf8000000 port 0xf8026000 irq 89
ata4: SATA max UDMA/133 mmio m1048576@0xf8000000 port 0xf8028000 irq 89
pxa3xx-nand d00d0000.nand: This platform can't do DMA on this device
nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd3
nand: Samsung NAND 1GiB 3,3V 8-bit
nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
pxa3xx-nand d00d0000.nand: ECC strength 1, ECC step size 512
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
7 ofpart partitions found on MTD device pxa3xx_nand-0
Creating 7 MTD partitions on "pxa3xx_nand-0":
0x000000000000-0x0000000e0000 : "u-boot"
0x0000000e0000-0x000000100000 : "u-boot-env"
0x000000100000-0x000000120000 : "u-boot-env2"
0x000000120000-0x000000520000 : "zImage"
0x000000520000-0x000000920000 : "initrd"
0x000000e00000-0x000040000000 : "boot"
0x000000000000-0x000040000000 : "flash"
spi_gpio spi3: gpio-miso property not found, switching to no-rx mode
libphy: Fixed MDIO Bus: probed
libphy: orion_mdio_bus: probed
mvneta d0070000.ethernet eth0: Using random mac address 6a:b3:53:36:ca:49
mvneta d0074000.ethernet eth1: Using random mac address a2:37:d6:48:b0:99
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci d0050000.usb: EHCI Host Controller
orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
orion-ehci d0050000.usb: irq 26, io mem 0xd0050000
orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
orion-ehci d0051000.usb: EHCI Host Controller
orion-ehci d0051000.usb: new USB bus registered, assigned bus number 2
orion-ehci d0051000.usb: irq 27, io mem 0xd0051000
orion-ehci d0051000.usb: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci_hcd 0000:02:00.0: xHCI Host Controller
xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:02:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
xhci_hcd 0000:02:00.0: xHCI Host Controller
xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 4
usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usbcore: registered new interface driver usb-storage
rtc-mv d0010300.rtc: rtc core: registered d0010300.rtc as rtc0
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.4
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc1
adt7475 0-002e: ADT7473 device, revision 0
adt7475 0-002e: Optional features: fan4 pwm2
orion_wdt: Initial timeout 171 sec
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
md: multipath personality registered for level -4
device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
device-mapper: multipath: version 1.10.0 loaded
device-mapper: multipath round-robin: version 1.0.0 loaded
device-mapper: raid: Loading target version 1.7.0
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
input: gpio-keys as /devices/platform/gpio-keys/input/input0
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
ata1: link is slow to respond, please be patient (ready=0)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  0-33 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ALSA device list:
  No soundcards found.
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.
VFS: Cannot open root device "ram" or unknown-block(1,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0800       244198584 sda  driver: sd
  0801        20971520 sda1 3f2e2bad-1229-4ed5-ab22-9c21afdbcab5
  0802        20971520 sda2 1fa33c05-7772-41d7-be68-5eb028bdafe5
  0803       202221735 sda3 7aca273a-2422-46c8-8a20-4669e9a02d96
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.43 #1
Hardware name: Marvell Armada 370/XP (Device Tree)
[<c0016dc4>] (unwind_backtrace) from [<c0012d44>] (show_stack+0x10/0x14)
[<c0012d44>] (show_stack) from [<c01f51b8>] (dump_stack+0x84/0x98)
[<c01f51b8>] (dump_stack) from [<c0015c90>] (handle_IPI+0x188/0x1a4)
[<c0015c90>] (handle_IPI) from [<c00094c4>] (armada_370_xp_handle_irq+0x90/0xa4)
[<c00094c4>] (armada_370_xp_handle_irq) from [<c0013814>] (__irq_svc+0x54/0x70)
Exception stack(0xc06d9f68 to 0xc06d9fb0)
9f60:                   00000000 dfbd02c0 00001516 c001c57c c06d8000 c06da498
9f80: c04eb3c8 c06d32a0 c06d9fb8 c0717360 c06c5e30 00000000 60000013 c06d9fb8
9fa0: c000ff54 c0055134 60000013 ffffffff
[<c0013814>] (__irq_svc) from [<c0055134>] (cpu_startup_entry+0x104/0x178)
[<c0055134>] (cpu_startup_entry) from [<c0692c68>] (start_kernel+0x398/0x3a4)
[<c0692c68>] (start_kernel) from [<0000807c>] (0x807c)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)


Top
 Profile  
 
PostPosted: Sat Jan 21, 2017 6:09 pm 
Offline

Joined: Sun Jan 15, 2017 11:00 am
Posts: 13
Gyuri wrote:
I followed the instructions from the wiki about "Flashing for booting custom kernel from nand". Flashing went well, but as you can see below I couldn't mount rootfs.


Ok I done it:
stop autoboot and then:
Code:
setenv bootargs_root "root=/dev/sda2 rw"
saveenv
reset


No I feel myself (I think) as Benoitm974 at the beginning of this topic as I continuously replying to my own posts :D

Well that's it, everything is working now! Thanks Benoitm974 for your work, and thanks Doufas for your encouragement. This was my first kernel compilation ;D

ps.: if anyone knows why jessie is not working, then please share with me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group