Welcome! Log In Create A New Profile

Advanced

LG N2B1

Posted by pjmaxx 
LG N2B1
February 19, 2019 06:26AM
I found a post with instructions for N1T1 rebuild (very detailed). I have a N2B1 I would love to do this with but I can't seem to find any post specifically for this model. The two are very similar. Can someone point me in the right direction to where I may find more info or if N1T1 files are compatible or useful?



Edited 2 time(s). Last edit at 02/19/2019 06:28AM by pjmaxx.
Re: LG N2B1
February 19, 2019 12:54PM
I had an N4B1 that I did a lot of work with ~ 2010 - 2014 and know quite a bit about that device, I suspect the N2B1 is basically the same. if that's the case it should have a pretty easily accessible serial header on the board.

I was able to boot the device using the device-tree for the "kurobox pro" which got network and some other things working. I believe if you enable pcie in the device tree it would also find the sata and you'd be off to a good start.

To test you could grab the debian installer images for this device and try booting them:
https://d-i.debian.org/daily-images/armel/daily/orion5x/network-console/buffalo/kuroboxpro/

all you have to do is rename uImage.buffalo and initrd.buffalo to match the filenames of the stock firmware, put them in place of those files and reboot. the device should come up into the debian installer. assuming that works you can grab the kuroboxpro dts file from the mainline kernel and start modifying it for the n2b1's hardware.
Re: LG N2B1
February 19, 2019 01:27PM
pjmaxx,

Yes. Do what 100.. said, to get it running using mainline kernel.

Additionally, instead of mainline kernel, if you want to use my released kernel and rootfs then what I would do is followed.

When you want to run a new box like this, list the specifications of both N1T1 and N2B1. And see what are the differences. And then take the N1T1 DTS file and modify it to eliminate those. You might or might not able to use the N1T1 DTS as a base to work from (if they use extactly the same SoC then it is likely that you can). Let me know if you need my help doing this.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: LG N2B1
February 19, 2019 03:31PM
Thank you both for the hints. I will start on this either later today or tomorrow afternoon. This unit has outlived its usefulness in its current state. It has served well in the past.
Re: LG N2B1
February 19, 2019 05:42PM
N2B1
88F6192
800Mhz ram
2 bay
and no camera (N4B1 has a camera?)
e
everything else seems the same at this point.

What software will I be needing?
Re: LG N2B1
February 22, 2019 08:49AM
Ok so reading through a few other post trying to get a good idea of what is or maybe needed. I am still a little confused about using uboot to navigate. I have successfully booted to uboot on the n2b1. I didn't have alot of time last night. I am assuming that LG replaced the uboot on their last system update back in 2011-12.
Is it necessary to replace uboot?
The ttl to usb adapter seemed laggy is that normal?
I am familiar with linux but no expert by any stretch of the imagination. I am learning. I look at winders all day. I have an extensive electronics, visual basic and .net background.
Re: LG N2B1
February 22, 2019 10:13AM
it's been a while since I worked on this one, sadly I didn't keep the greatest notes. You shouldn't have to replace uboot to get this working. as I recall the serial console feels pretty laggy which is fine.

I'd recommend starting by trying to boot into that debian installer I linked to earlier. The main advantage being that if sata doesn't work right away you'll still be able to work on getting that fixed from within the installers shell (it doesn't require a rootfs). Once you get your sata drives detected you can work on setting up a rootfs.

to start go back into uboot and run printenv. take a look at the bootcmd, it should load the kernel from /boot/uImage, I don't remember if it tries to load an initrd or not.

1. take blank drive, create a small (1gb) partition
2. format that partition as ext2, mount it
3. copy the uImage.buffalo (kernel) and initrd.buffalo (initrd) files to it
4. put that drive into the n2b1 and boot into uboot
5. manually enter a boot command similar to the one the device normally uses which loads those two files and then boots from them.

with any luck you should boot into the debian installer which will automatically launch and ssh server you can connect to and poke around.

once you're comfortable with that workflow we can set you up to start modifying the device tree and repacking the kernel to make it support more of the n2b1's hardware. once you get sata working you can move to a proper rootfs which will make testing the other hardware easier.
Re: LG N2B1
February 23, 2019 12:49PM
I have been trying different usb thumb drives with various formats ext2,ext3, ext4 etc...
I have even tried 2 usb hard drives.

but now matter what usb port (there are 3 on the unit) or drive.. I always get 0 storage devices found.
I am not sure where to go from here..

LGE-NAS>> usb start
scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 0 Storage Device(s) found
LGE-NAS>>

copy of env.

LGE-NAS>> printenv
baudrate=115200
loads_echo=0
ipaddr=192.168.0.200
serverip=10.177.191.39
rootpath=/opt/Orion-SDK/armel-2.0/rootfs
netmask=255.255.255.0
run_diag=yes
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot),0x400000@0x100000(kernel),0xb00000@0x500000(rootfs),0x5000000@0x1000000(data)
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
MALLOC_len=1
ethprime=egiga0
netbsd_en=no
vxworks_en=no
bootargs_nfs=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
boot_name=u-boot.bin
root_path=root=/dev/md0 rw
up_boot=tftp 2000000 $(boot_name); nand erase 0 100000; nand write.e 2000000 0 78000
read-kern=ide reset; ext2load2 ide 2 2000000 /boot/$(image_name);
mem-clear=mw.l 1000000 0x00000000 1000000
bootcmd_nfs=tftpboot 0x2000000 $(image_name); setenv bootargs $(console) $(bootargs_root) nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvNetConfig) $(mvPhoneConfig);  bootm 0x2000000; 
bootcmd_hdd=run read-kern; setenv bootargs $(console) $(root_path) lpj=4964352 nas_type=$(nas_type); bootm 0x2000000; 
bootargs_usb=root=/dev/sdc2 rw rootdelay=10
bootcmd_enc=run mem-clear; set bootargs $(console) $(bootargs_ram) nas_type=$(nas_type) enclosure; ide res; ide load; bootm 1000000 2000000
bootargs_ram=root=/dev/ram0 rw
tftp-ram=tftp 1000000 nt/$(uImage-ram); tftp 2000000 nt/ramdisk_image; set bootargs $(console) $(bootargs_ram); bootm 1000000 2000000
uImage-ram=uImage-2.6.30-nt1_11_ramdisk
bootcmd_nand=nand read.e 2000000 100000 1d0000; setenv bootargs $(console) root=/dev/md1 rw lpj=3973120; bootm 0x2000000
bootcmd=run bootcmd_hdd; run bootcmd_nand
bootcmd_tftp=tftp 0x2000000 $(image_name); setenv bootargs $(console) $(root_path) lpj=4964352; bootm 0x2000000; 
firmware=firmware.tar.gz
bootcmd_netenc=set bootargs $(console) $(bootargs_ram) netenc nas_type=$(nas_type) IP=$(ipaddr) SIP=$(serverip) FW=$(firmware); bootm 1000000 2000000
bootcmd_usbenc=set bootargs $(console) $(bootargs_ram) usbenc nas_type=$(nas_type) IP=$(ipaddr) SIP=$(serverip) FW=$(firmware); bootm 1000000 2000000
nas_type=0x00000210
bootdelay=1
disaMvPnp=no
ethaddr=00:50:43:00:02:02
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
hddPowerCtrl=no
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
enaAutoRecovery=no
pcieTune=no
ethact=egiga0

Environment size: 2602/131068 bytes

And UBOOT

Normal mode boot start! 

 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** LGE-NAS BOARD: NC1 LE 

U-Boot 1.1.4 (Feb 24 2012 - 15:06:45)NC1

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

Soc: 88F6192 A1 CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 3 tRP = 3 tRAS = 8 tRCD=3
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:nand_bbm_init: Init nand bad block information...
nand_bbm_find_pos: nand_bbm_check = 0, erasesize = 20000
nand_bbm_find_pos: nand_bbm_find_pos: bbm pos = 7800000, pos = 7800000
Loading nand bad block info(07800000+00020000)...
nand_bbm_info_load: bbm->magic        = 8192a5a7
nand_bbm_info_load: bbm->bb_count     = 0
nand_bbm_info_load: bbm->assign_index = 3ff
Assign index = 3ff
nand_bbm_info_load: Loading nand bad block info...ok
128 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


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

Re: LG N2B1
February 23, 2019 01:02PM
i'd recommend doing it from a hard drive to start, we know it will boot from that. @bohdi might have some advice for getting it to work if you want to pursue that route.

also it looks like this has a different SoC than the N4B1 did, rather than trying the kurobox image you'd want to try the ls-xl installer image instead to start.
Re: LG N2B1
February 23, 2019 01:57PM
pjmaxx,

This u-boot should have USB supports. But don't use USB hard disks. This u-boot is too old.

Which brand are these thumb drives? have you tried a Sandisk brand?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 02/23/2019 01:58PM by bodhi.
Re: LG N2B1
February 23, 2019 02:43PM
Yes Sandisk, Kingston and samsung.
Booting from hard drive would be just fine.
Like I said before learning curve..
Re: LG N2B1
February 24, 2019 09:13AM
1000001101000 Wrote:
-------------------------------------------------------
> i'd recommend doing it from a hard drive to start,
> we know it will boot from that. @bohdi might have
> some advice for getting it to work if you want to
> pursue that route.
>
> also it looks like this has a different SoC than
> the N4B1 did, rather than trying the kurobox image
> you'd want to try the ls-xl installer image
> instead to start.

Sorry for being such a noob but I can't seen to locate ls-xl image. probably over looking it
is this the correct location?
https://d-i.debian.org/daily-images/armel/daily/kirkwood/network-console/buffalo/
Re: LG N2B1
February 24, 2019 09:37AM
My bad, I think I directed you at something that doesn't exist for that one.

looking at the dts files in the mainline kernel I see the following options:

kirkwood-blackarmor-nas220.dts
kirkwood-laplug.dts
kirkwood-ns2lite.dts
kirkwood-ns2mini.dts
kirkwood-pogoplug-series-4.dts
kirkwood-rd88f6192.dts

you could try the lacie ns2 files as a start:
https://d-i.debian.org/daily-images/armel/daily/kirkwood/network-console/lacie/
Re: LG N2B1
February 24, 2019 03:31PM
This box is close cousin of Pogoplug V4 and NS2 Lite.

Quote

N2B1
88F6192
800Mhz ram

Lacie NS2 is not. NS2 is 88F6281, just like the LG N1T1.

So if pjmaxx wants to use mainline DTS, look to use one of these:

kirkwood-blackarmor-nas220
kirkwood-laplug
kirkwood-ns2lite
kirkwood-ns2mini
kirkwood-pogoplug-series-4 
(this kirkwood-pogoplug-series-4 is the mainline version, my version in kernel linux-4.20.6-kirkwood-tld-1 is different).

Sorry to repeat, I did not see 100... post above :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 02/24/2019 03:32PM by bodhi.
Re: LG N2B1
February 24, 2019 06:36PM
Lacie NS2 uImage

LGE-NAS>> ext2load ide 1:1 0x800000 /uImage

2051084 bytes read
LGE-NAS>> bootm 0x800000
## Booting image at 00800000 ..., header_size = 00000040, header_addr = 0069024c
image_header_t hdr contents
hdr->ih_magic = 56190527, hdr->ih_hcrc = f8d42f56
hdr->ih_time = 6eed715c, hdr->ih_size = 001f4bcc
hdr->ih_load = 00800000, hdr->ih_ep = 00800000
hdr->ih_dcrc = 21c339f0
hdr->ih_os = 05, hdr->ih_arch = 02
hdr->ih_type = 02, hdr->ih_comp = 00
hdr->ih_name = Debian kernel

   Image Name:   Debian kernel
   Created:      2019-02-24   1:03:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2051020 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.0-3-marvell (debian-kernel@lists.debian.org) (gcc version 8.2.0 (Debian 8.2.0-20)) #1 Debian 4.19.20-1 (2019-02-11)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: LaCie Network Space v2
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4ac with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 123836K/131072K available (3950K kernel code, 342K rwdata, 1032K rodata, 308K init, 218K bss, 7236K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (3952 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 308 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 343 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 219 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 18861 entries in 37 pages
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000012] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000058] Switching to timer-based delay loop, resolution 6ns
[    0.000193] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=666666)
[    0.000224] pid_max: default: 32768 minimum: 301
[    0.000612] Security Framework initialized
[    0.000639] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.000801] AppArmor: AppArmor initialized
[    0.000997] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001031] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002530] CPU: Testing write buffer coherency: ok
[    0.004034] Setting up static identity map for 0x8200 - 0x823c
[    0.004437] mvebu-soc-id: MVEBU SoC ID=0x6192, Rev=0x3
[    0.006930] devtmpfs: initialized
[    0.011329] VFP support v0.3: not present
[    0.011555] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.011593] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.012156] pinctrl core: initialized pinctrl subsystem
[    0.013786] NET: Registered protocol family 16
[    0.014365] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015236] audit: initializing netlink subsys (disabled)
[    0.016429] cpuidle: using governor ladder
[    0.016452] cpuidle: using governor menu
[    0.016923] Feroceon L2: Enabling L2
[    0.016980] Feroceon L2: Cache support initialised.
[    0.017329] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.020154] audit: type=2000 audit(0.012:1): state=initialized audit_enabled=0 res=1
[    0.022658] No ATAGs?
[    0.028928] clocksource: Switched to clocksource orion_clocksource
[    0.061181] VFS: Disk quotas dquot_6.6.0
[    0.061300] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.061970] AppArmor: AppArmor Filesystem Enabled
[    0.063513] NET: Registered protocol family 2
[    0.064529] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.064569] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.064600] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.064628] TCP: Hash tables configured (established 1024 bind 1024)
[    0.064770] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.064810] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.065153] NET: Registered protocol family 1
[    0.066460] Initialise system trusted keyrings
[    0.066696] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.073618] zbud: loaded
[    0.075983] Key type asymmetric registered
[    0.076000] Asymmetric key parser 'x509' registered
[    0.076070] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.076293] io scheduler noop registered
[    0.076642] io scheduler cfq registered (default)
[    0.078763] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.081299] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.110215] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.110479] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.142225] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.142730] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.144070] console [ttyS0] disabled
[    0.144154] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 10416666) is a 16550A
[    0.634681] console [ttyS0] enabled
[    0.639195] libphy: Fixed MDIO Bus: probed
[    0.643311] i2c /dev entries driver
[    0.648698] ledtrig-cpu: registered to indicate activity on CPUs
[    0.655951] registered taskstats version 1
[    0.660074] Loading compiled-in X.509 certificates
[    0.665720] Loaded X.509 cert 'secure-boot-test-key-lfaraone: 97c1b25cddf9873ca78a58f3d73bf727d2cf78ff'
[    0.675224] AppArmor: AppArmor sha1 policy hashing enabled
[    0.682451] hctosys: unable to open rtc device (rtc0)
[    0.688104] List of all partitions:
[    0.691618] No filesystem could mount root, tried: 
[    0.691622] 
[    0.697998] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.706233] CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.0-3-marvell #1 Debian 4.19.20-1
[    0.714286] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    0.720561] [<c0016f44>] (unwind_backtrace) from [<c00139f4>] (show_stack+0x18/0x1c)
[    0.728286] [<c00139f4>] (show_stack) from [<c0022030>] (panic+0xb8/0x250)
[    0.735150] [<c0022030>] (panic) from [<c050a5b8>] (mount_block_root+0x244/0x2e8)
[    0.742617] [<c050a5b8>] (mount_block_root) from [<c050a834>] (prepare_namespace+0x14c/0x18c)
[    0.751116] [<c050a834>] (prepare_namespace) from [<c050a0fc>] (kernel_init_freeable+0x1e0/0x260)
[    0.759962] [<c050a0fc>] (kernel_init_freeable) from [<c03df4a4>] (kernel_init+0x10/0xf8)
[    0.768108] [<c03df4a4>] (kernel_init) from [<c00090e0>] (ret_from_fork+0x14/0x34)
[    0.775641] Exception stack(0xc78a7fb0 to 0xc78a7ff8)
[    0.780674] 7fa0:                                     00000000 00000000 00000000 00000000
[    0.788814] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.796960] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    0.803550] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
[    1.372924] random: fast init done
[   53.837000] random: crng init done
Re: LG N2B1
February 24, 2019 07:41PM
Looks good. Now add the initrd and you should be in business
Re: LG N2B1
February 24, 2019 08:11PM
added the initrd and boots into an installer.
Re: LG N2B1
February 24, 2019 08:24PM
boots to an installer

IDE device 1: Model: ST3500414CS                              Firm: CA14     Ser#:             6VVNM7KQ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB ( Block : 512)
... is now current device
LGE-NAS>> ext2load ide 1:1 0x800000 /uImage

2051084 bytes read
LGE-NAS>> ext2load ide 1:1 0x1100000 /uInitrd

12349945 bytes read
LGE-NAS>> bootm 0x800000 0x1100000
## Booting image at 00800000 ..., header_size = 00000040, header_addr = 0069024c
image_header_t hdr contents
hdr->ih_magic = 56190527, hdr->ih_hcrc = f8d42f56
hdr->ih_time = 6eed715c, hdr->ih_size = 001f4bcc
hdr->ih_load = 00800000, hdr->ih_ep = 00800000
hdr->ih_dcrc = 21c339f0
hdr->ih_os = 05, hdr->ih_arch = 02
hdr->ih_type = 02, hdr->ih_comp = 00
hdr->ih_name = Debian kernel

   Image Name:   Debian kernel
   Created:      2019-02-24   1:03:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2051020 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000, header_addr = 0069024c, header_size = 00000040 ...
RAMdisk image_header_t hdr contents
hdr->ih_magic = 56190527, hdr->ih_hcrc = 1f1059bf
hdr->ih_time = 6eed715c, hdr->ih_size = 00bc71b9
hdr->ih_load = 00000000, hdr->ih_ep = 00000000
hdr->ih_dcrc = 4563ee6a
hdr->ih_os = 05, hdr->ih_arch = 02
hdr->ih_type = 03, hdr->ih_comp = 01
hdr->ih_name = debian-installer ramdisk

   Image Name:   debian-installer ramdisk
   Created:      2019-02-24   1:03:42 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    12349881 Bytes = 11.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.0-3-marvell (debian-kernel@lists.debian.org) (gcc version 8.2.0 (Debian 8.2.0-20)) #1 Debian 4.19.20-1 (2019-02-11)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: LaCie Network Space v2
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4ac with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 111772K/131072K available (3950K kernel code, 342K rwdata, 1032K rodata, 308K init, 218K bss, 19300K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (3952 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 308 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 343 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 219 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 18861 entries in 37 pages
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000012] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000058] Switching to timer-based delay loop, resolution 6ns
[    0.000193] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=666666)
[    0.000227] pid_max: default: 32768 minimum: 301
[    0.000618] Security Framework initialized
[    0.000645] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.000806] AppArmor: AppArmor initialized
[    0.001007] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001041] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002546] CPU: Testing write buffer coherency: ok
[    0.004051] Setting up static identity map for 0x8200 - 0x823c
[    0.004454] mvebu-soc-id: MVEBU SoC ID=0x6192, Rev=0x3
[    0.006952] devtmpfs: initialized
[    0.011376] VFP support v0.3: not present
[    0.011620] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.011655] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.012212] pinctrl core: initialized pinctrl subsystem
[    0.013828] NET: Registered protocol family 16
[    0.014409] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015276] audit: initializing netlink subsys (disabled)
[    0.016480] cpuidle: using governor ladder
[    0.016504] cpuidle: using governor menu
[    0.016977] Feroceon L2: Enabling L2
[    0.017035] Feroceon L2: Cache support initialised.
[    0.017383] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.020128] audit: type=2000 audit(0.012:1): state=initialized audit_enabled=0 res=1
[    0.022721] No ATAGs?
[    0.028989] clocksource: Switched to clocksource orion_clocksource
[    0.061237] VFS: Disk quotas dquot_6.6.0
[    0.061356] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.062029] AppArmor: AppArmor Filesystem Enabled
[    0.063577] NET: Registered protocol family 2
[    0.064594] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.064635] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.064665] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.064693] TCP: Hash tables configured (established 1024 bind 1024)
[    0.064835] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.064873] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.065222] NET: Registered protocol family 1
[    0.065594] Unpacking initramfs...
[    1.021024] random: fast init done
[    1.540519] Freeing initrd memory: 12064K
[    1.541799] Initialise system trusted keyrings
[    1.542055] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.548919] zbud: loaded
[    1.551391] Key type asymmetric registered
[    1.551407] Asymmetric key parser 'x509' registered
[    1.551479] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.551717] io scheduler noop registered
[    1.552070] io scheduler cfq registered (default)
[    1.554164] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    1.556634] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.586280] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.586544] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.618272] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.618787] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.620119] console [ttyS0] disabled
[    1.620204] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 10416666) is a 16550A
[    2.121603] console [ttyS0] enabled
[    2.126095] libphy: Fixed MDIO Bus: probed
[    2.130216] i2c /dev entries driver
[    2.135640] ledtrig-cpu: registered to indicate activity on CPUs
[    2.142885] registered taskstats version 1
[    2.147005] Loading compiled-in X.509 certificates
[    2.180935] Loaded X.509 cert 'secure-boot-test-key-lfaraone: 97c1b25cddf9873ca78a58f3d73bf727d2cf78ff'
[    2.190577] AppArmor: AppArmor sha1 policy hashing enabled
[    2.197837] hctosys: unable to open rtc device (rtc0)
[    2.206814] Freeing unused kernel memory: 308K
[    2.211265] This architecture does not have kernel memory protection.
[    2.217697] Run /init as init process
[    2.475402] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[    2.626364] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.646123] libphy: orion_mdio_bus: probed
[    2.683522] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    2.723446] SCSI subsystem initialized
[    2.731602] usbcore: registered new interface driver usbfs
[    2.743183] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02
[    2.776808] usbcore: registered new interface driver hub
[    2.812271] usbcore: registered new device driver usb
[    2.871483] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.898132] sata_mv f1080000.sata: slots 32 ports 1
[    2.927653] ehci-orion: EHCI orion driver
[    2.931857] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[    2.950094] scsi host0: sata_mv
[    2.963419] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.969612] ata1: SATA max UDMA/133 irq 34
[    3.004981] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    3.039825] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    3.073024] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    3.079371] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    3.087633] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.094844] usb usb1: Product: EHCI Host Controller
[    3.099723] usb usb1: Manufacturer: Linux 4.19.0-3-marvell ehci_hcd
[    3.105986] usb usb1: SerialNumber: f1050000.ehci
[    3.113349] hub 1-0:1.0: USB hub found
[    3.117168] hub 1-0:1.0: 1 port detected
[    3.287426] ata1: SATA link down (SStatus 0 SControl F300)
Starting system log daemon: syslogd, klogd.

Re: LG N2B1
February 24, 2019 08:44PM
nice, that's a good starting point. getting it to boot is half the battle and you've already managed that.

it looks like it didn't find your hard drive(s) but we were expecting that. you can confirm this by trying to run through the installer, i'm guessing it will say it can't find any disks.

hopefully you can find it on the network, you should be able to connect over ssh:
username=installer
password=install

next we need to get you set up to modify the device-tree so you can start customizing the device tree for this device.

do you have (or can you get) the dmesg output of the stock kernel? that will be really helpful for determining some info about the hardware you'll want to add to the device tree
Re: LG N2B1
February 24, 2019 08:57PM
1000001101000 Wrote:
-------------------------------------------------------
> nice, that's a good starting point. getting it to
> boot is half the battle and you've already managed
> that.
>
> it looks like it didn't find your hard drive(s)
> but we were expecting that. you can confirm this
> by trying to run through the installer, i'm
> guessing it will say it can't find any disks.
>
> hopefully you can find it on the network, you
> should be able to connect over ssh:
> username=installer
> password=install
>
> next we need to get you set up to modify the
> device-tree so you can start customizing the
> device tree for this device.
>
> do you have (or can you get) the dmesg output of
> the stock kernel? that will be really helpful for
> determining some info about the hardware you'll
> want to add to the device tree

It found the network.
I did run it through the installer.. It did not find hard drive.
SSH seems to work as expected.

I will continue tomorrow afternoon and get the dmesg.

Thanks for the help.
Re: LG N2B1
February 24, 2019 09:34PM
typically when I start modifying/testing a device tree I setup a full kernel crosscompile environment with some scripts to make executing the build and packaging the resulting dtb file with the kernel easier.

I can help you set something like that up for your testing but I suspect there is an easier way. I'm curious to compare notes with @bohdi who seems to do this more than I do.



Edited 1 time(s). Last edit at 02/25/2019 12:56PM by 1000001101000.
Re: LG N2B1
February 25, 2019 01:17PM
Here is the basic process for getting started modifying the device tree (example shows just building the one you've already tested).

#install the needed tools and source (for the dts file)
apt-get install device-tree-compiler linux-source-4.9 u-boot-tools

#grab the installer initrd (it's already packaged and ready for use)
wget "http://ftp.nl.debian.org/debian/dists/stretch/main/installer-armel/current/images/kirkwood/network-console/lacie/uInitrd";

#grab the plain kernel (we need to package our own since we're using a custom dtb)
wget "http://ftp.nl.debian.org/debian/dists/stretch/main/installer-armel/current/images/kirkwood/netboot/vmlinuz-4.9.0-8-marvell";

#pull out the NS2 dts file from the kernel source
tar xvf /usr/src/linux-source-4.9 --wildcards --strip-components=4 arch/arm/boot/dts/kirkwood-ns2.dts

#build a DTB out of it
dtc -I dts -O dtb -f kirkwood-ns2.dts -o kirkwood-ns2.db

#append the dtb to the kernel
cat vmlinuz-4.9.0-8-marvell kirkwood-ns2.db > kernelDTB

#package the kernel for uboot
mkimage -A arm -O linux -T Kernel -C none -a 0x00008000 -e 0x00008000 -n debian_installer -d kernelDTB uImage

Now you should be able to boot uImage and uInitrd. you can then make changes to the dts as desired and generate a new uImage by re-running the last 3 steps as needed.
Re: LG N2B1
February 25, 2019 01:21PM
actually I think you'll need to grab the needed include files out of the kernel source too:
kirkwood-6281.dtsi
kirkwood-ns2-common.dtsi
kirkwood.dtsi

I think moving forward you'll want to try to eliminate kirkwood-ns2-common.dtsi as a dependency but I'd suggest verifying you can successfully build a DTB before moving forward with actually editing one.
Re: LG N2B1
February 25, 2019 02:17PM
I took a stab at a first dts specific to this device, it's based on the NS2 dts but with some changes:
removed anything that showed as failing in your initial boot
removed anything specific to lacie or the NS2
removed the dependency on kirkwood-ns2-common.dtsi
adjusted the ram to the correct size
enabled pcie which will hopefully allow sata to be detected

I confirmed it will build without an error but I don't know if it will work or not.


/dts-v1/;

#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"

/ {
model = "LG N2B1";
compatible = "lg,n2b1", "marvell,kirkwood-88f6281", "marvell,kirkwood";

memory {
device_type = "memory";
reg = <0x00000000 0x8000000>;
};

chosen {
bootargs = "console=ttyS0,115200n8";
stdout-path = &uart0;
};

ocp@f1000000 {

serial@12000 {
status = "okay";
};
};
};

&mdio {
status = "okay";

ethphy0: ethernet-phy@8 {
reg = <8>;
};
};

&eth0 {
status = "okay";
ethernet0-port@0 {
phy-handle = <&ethphy0>;
};
};

&pciec {
status = "okay";
};

&pcie0 {
status = "okay";
};
Re: LG N2B1
February 25, 2019 06:14PM
This is as far as I can get it to go on LG nc1 uImage/initrd

## Booting image at 00800000 ..., header_size = 00000040, header_addr = 0069024c
image_header_t hdr contents
hdr->ih_magic = 56190527, hdr->ih_hcrc = 4afa6cce
hdr->ih_time = 62bfb04e, hdr->ih_size = 00268058
hdr->ih_load = 00800000, hdr->ih_ep = 00800000
hdr->ih_dcrc = dae5c278
hdr->ih_os = 05, hdr->ih_arch = 02
hdr->ih_type = 02, hdr->ih_comp = 00
hdr->ih_name = Linux-2.6.36.2-lgnas

   Image Name:   Linux-2.6.36.2-lgnas
   Created:      2011-11-02   3:56:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2523224 Bytes =  2.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000, header_addr = 0069024c, header_size = 00000040 ...
RAMdisk image_header_t hdr contents
hdr->ih_magic = 56190527, hdr->ih_hcrc = ee787c8d
hdr->ih_time = 1aa1c54e, hdr->ih_size = 02700000
hdr->ih_load = 00000000, hdr->ih_ep = 00000000
hdr->ih_dcrc = fa0184d7
hdr->ih_os = 05, hdr->ih_arch = 02
hdr->ih_type = 03, hdr->ih_comp = 00
hdr->ih_name = initrd Ramdisk Image for armel

   Image Name:   initrd Ramdisk Image for armel
   Created:      2011-11-18   0:04:42 UTC
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    40894464 Bytes = 39 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.36.2-lgnas (jaehun@nas-dev) (gcc version 4.2.0 20070413 (prerelease)) #1 Wed Nov 2 12:56:16 KST 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: LG Advanced Multimedia Storage NC1
[    0.000000] Ignoring unrecognised tag 0x41000403
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot),0x400000@0x100000(kernel),0xb00000@0x500000(rootfs),0x5000000@0x1000000(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 84316k/84316k available, 46756k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xc8800000 - 0xfe800000   ( 864 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc002e000   ( 152 kB)
[    0.000000]       .text : 0xc002e000 - 0xc0483000   (4436 kB)
[    0.000000]       .data : 0xc04a6000 - 0xc04cf840   ( 167 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU-based detection of stalled CPUs is disabled.
[    0.000000]  Verbose stalled-CPUs detection is disabled.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[    0.000265] Calibrating delay loop... 794.62 BogoMIPS (lpj=3973120)
[    0.230037] pid_max: default: 32768 minimum: 301
[    0.230258] Mount-cache hash table entries: 512
[    0.230684] CPU: Testing write buffer coherency: ok
[    0.233855] NET: Registered protocol family 16
[    0.236827] Kirkwood: MV88F6192-A1, TCLK=166666667.
[    0.236847] Feroceon L2: Enabling L2
[    0.236891] Feroceon L2: Cache support initialised.
[    0.254410] bio: create slab <bio-0> at 0
[    0.255094] vgaarb: loaded
[    0.255829] SCSI subsystem initialized
[    0.256635] usbcore: registered new interface driver usbfs
[    0.256939] usbcore: registered new interface driver hub
[    0.257139] usbcore: registered new device driver usb
[    0.258106] Switching to clocksource orion_clocksource
[    0.275693] NET: Registered protocol family 2
[    0.275834] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.276187] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.276332] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.276410] TCP: Hash tables configured (established 4096 bind 4096)
[    0.276423] TCP reno registered
[    0.276436] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.276471] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.276624] NET: Registered protocol family 1
[    0.276880] RPC: Registered udp transport module.
[    0.276894] RPC: Registered tcp transport module.
[    0.276905] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.277113] Trying to unpack rootfs image as initramfs...
[    0.277372] rootfs image is not initramfs (junk in compressed archive); looks like an initrd
[    0.481065] Freeing initrd memory: 39936K
[    0.481589] cpufreq: Init kirkwood cpufreq driver
[    0.490316] kirkwood_pm_register: Power Management for Marvell Kirkwood.
[    0.491764] Starting Selective Mirror Daemon...
[    0.491798] /proc/s_mirror created !!!!!!!!!!!!!!!!!!!
[    0.492019] VFS: Disk quotas dquot_6.5.2
[    0.492086] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.492860] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.493510] msgmni has been set to 242
[    0.495586] io scheduler noop registered
[    0.495599] io scheduler deadline registered
[    0.495673] io scheduler cfq registered (default)
[    0.504360] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.525607] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.915577] console [ttyS0] enabled
[    0.929222] brd: module loaded
[    0.937139] loop: module loaded
[    0.941622] sata_mv sata_mv.0: version 1.28
[    0.945949] sata_mv sata_mv.0: slots 32 ports 2
[    0.951471] scsi0 : sata_mv
[    0.954866] scsi1 : sata_mv
[    0.958119] ata1: SATA max UDMA/133 irq 21
[    0.962254] ata2: SATA max UDMA/133 irq 21
[    0.967719] NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 8-bit)
[    0.976435] nand_bbm_init: Init nand bad block information...
[    0.982358] nand_bbm_find_pos: nand_bbm_check = 0, erasesize = 20000
[    0.988722] nand_bbm_find_pos: nand_bbm_find_pos: bbm pos = 7800000, pos = 7800000
[    0.996306] Loading nand bad block info(07800000+00020000)...
[    1.012725] nand_bbm_info_load: bbm->magic        = 8192a5a7
[    1.018365] nand_bbm_info_load: bbm->bb_count     = 0
[    1.023409] nand_bbm_info_load: bbm->assign_index = 3ff
[    1.028656] Assign index = 3ff
[    1.031704] nand_bbm_info_load: Loading nand bad block info...ok
[    1.037727] Creating 4 MTD partitions on "orion_nand":
[    1.042872] 0x000000000000-0x000000100000 : "u-boot"
[    1.049803] 0x000000100000-0x000000500000 : "kernel"
[    1.057879] 0x000000500000-0x000001000000 : "rootfs"
[    1.068690] 0x000001000000-0x000008000000 : "data"
[    1.123433] MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.129279] mv643xx_eth smi: probed
[    1.134989] net eth0: port 0 with MAC address 00:50:43:00:02:02
[    1.141150] ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[    1.149179] ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[    1.157989] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.164558] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    1.169848] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    1.200061] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    1.220044] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    1.226804] hub 1-0:1.0: USB hub found
[    1.230571] hub 1-0:1.0: 1 port detected
[    1.235258] Initializing USB Mass Storage driver...
[    1.240361] usbcore: registered new interface driver usb-storage
[    1.246339] USB Mass Storage support registered.
[    1.251241] mice: PS/2 mouse device common for all mice
[    1.256586] i2c /dev entries driver
[    1.305857] rtc-rs5c372 0-0032: r2025sd found, 24hr, driver version 0.6
[    1.312782] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    1.320120] md: linear personality registered for level -1
[    1.325588] md: raid0 personality registered for level 0
[    1.330909] md: raid1 personality registered for level 1
[    1.336723] device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com
[    1.350400] cpuidle: using governor ladder
[    1.354528] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    1.360912] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    1.390063] ata1: SATA link down (SStatus 0 SControl F300)
[    1.400096] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    1.440071] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    1.480075] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    1.520074] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    1.528298] usbcore: registered new interface driver hiddev
[    1.534055] usbcore: registered new interface driver usbhid
[    1.539607] usbhid: USB HID core driver
[    1.570093] usb 1-1: new high speed USB device using orion-ehci and address 2
[    1.721332] hub 1-1:1.0: USB hub found
[    1.725154] hub 1-1:1.0: 4 ports detected
[    1.770431] iomicom 0-0058: NAS HAL Detected io-micom chip at 0x58
[    1.776864] TCP cubic registered
[    1.780264] NET: Registered protocol family 10
[    1.785334] IPv6 over IPv4 tunneling driver
[    1.790209] NET: Registered protocol family 17
[    1.794655] NET: Registered protocol family 5
[    1.799072] Registering the dns_resolver key type
[    1.900070] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    1.907041] ata2.15: Port Multiplier 1.2, 0x11ab:0x4140 r193, 4 ports, feat 0x5/0x1f
[    1.915382] ata2.00: hard resetting link
[    2.420304] ata2.01: hard resetting link
[    2.770797] ata2.02: hard resetting link
[    3.280301] ata2.03: hard resetting link
[    3.670082] ata2.00: ATA-8: ST3500414CS, CA14, max UDMA/133
[    3.675636] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.740093] ata2.00: configured for UDMA/133
[    3.760124] ata2.02: ATAPI: HL-DT-ST BD-RE  BH10NS30, H106, max UDMA/133
[    3.800135] ata2.02: configured for UDMA/133
[    3.880247] ata2: EH complete
[    3.883632] scsi 1:0:0:0: Direct-Access     ATA      ST3500414CS      CA14 PQ: 0 ANSI: 5
[    3.892922] sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    3.900842] sd 1:0:0:0: Attached scsi generic sg0 type 0
[    3.906650] sd 1:0:0:0: [sda] Write Protect is off
[    3.911605] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.070179] scsi 1:2:0:0: CD-ROM            HL-DT-ST BD-RE  BH10NS30  H106 PQ: 0 ANSI: 5
[    4.380121] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[    4.387608] cdrom: Uniform CD-ROM driver Revision: 3.20
[    4.393404]  sda: sda1
[    4.397433] sd 1:0:0:0: [sda] Attached SCSI disk
[    4.402855] sr 1:2:0:0: Attached scsi generic sg1 type 5
[    4.429436] rtc-rs5c372 0-0032: setting system clock to 2010-01-02 17:58:24 UTC (1262455104)
[    4.438067] md: Waiting for all devices to be available before autodetect
[    4.444848] md: If you don't use raid, use raid=noautodetect
[    4.451369] md: Autodetecting RAID arrays.
[    4.455454] md: Scanned 0 and added 0 devices.
[    4.459874] md: autorun ...
[    4.462701] md: ... autorun DONE.
[    4.466235] RAMDISK: ext2 filesystem found at block 0
[    4.471319] RAMDISK: Loading 39936KiB [1 disk] into ram disk... done.
[    5.982287] EXT3-fs: barriers not enabled
[    5.986459] kjournald starting.  Commit interval 5 seconds
[    5.992013] EXT3-fs (ram0): using internal journal
[    5.996808] EXT3-fs (ram0): mounted filesystem with writeback data mode
[    6.003543] VFS: Mounted root (ext3 filesystem) on device 1:0.
Bad inittab entry at line 5
Bad inittab entry at line 39
Bad inittab entry at line 40
Bad inittab entry at line 41
can't open /dev/si: No such file or directory
can't open /dev/~~: No such file or directory
can't open /dev/l0: No such file or directory
can't open /dev/l1: No such file or directory
can't open /dev/l2: No such file or directory
can't open /dev/l3: No such file or directory
can't open /dev/l4: No such file or directory
can't open /dev/l5: No such file or directory
can't open /dev/l6: No such file or directory
can't open /dev/z6: No such file or directory
can't open /dev/1: No such file or directory

Re: LG N2B1
February 25, 2019 06:48PM
excellent.

Looks like I was wrong about sata being pcie, that’s good to know. Also good info about the rtc/nand/etc all of which will help when we get that far.
Re: LG N2B1
February 25, 2019 08:56PM
Full nc1 dmesg
Normal mode boot start! 

 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** LGE-NAS BOARD: NC1 LE 

U-Boot 1.1.4 (Feb 24 2012 - 15:06:45)NC1

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

Soc: 88F6192 A1 CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 3 tRP = 3 tRAS = 8 tRCD=3
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:nand_bbm_init: Init nand bad block information...
nand_bbm_find_pos: nand_bbm_check = 0, erasesize = 20000
nand_bbm_find_pos: nand_bbm_find_pos: bbm pos = 7800000, pos = 7800000
Loading nand bad block info(07800000+00020000)...
nand_bbm_info_load: bbm->magic        = 8192a5a7
nand_bbm_info_load: bbm->bb_count     = 0
nand_bbm_info_load: bbm->assign_index = 3ff
Assign index = 3ff
nand_bbm_info_load: Loading nand bad block info...ok
128 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


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

Reset IDE: 
Marvell Serial ATA Adapter, MAX_DEVICE=32
Integrated Sata device found
Channel 1/2 is connected ... 
Port Multiplier found @ 0 1. Vendor: 11ab ports: 4
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1 0:
Model: ST3500414CS                              Firm: CA14     Ser#:             6VVNM7KQ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB ( Block : 512)
[0 1 2]: Enable DMA mode (6)
  Device 3 @ 0 1 2:
Model: HL-DT-ST BD-RE  BH10NS30                 Firm: H106     Ser#: K9KA8NB0350         
            Type: Removable CD ROM
            Capacity: not available

** Bad partition 1 **

2480680 bytes read
## Booting image at 02000000 ..., header_size = 00000040, header_addr = 0069024c
image_header_t hdr contents
hdr->ih_magic = 56190527, hdr->ih_hcrc = 6d339477
hdr->ih_time = b282d54e, hdr->ih_size = 0025d9e8
hdr->ih_load = 00800000, hdr->ih_ep = 00800000
hdr->ih_dcrc = 9eac3ad8
hdr->ih_os = 05, hdr->ih_arch = 02
hdr->ih_type = 02, hdr->ih_comp = 00
hdr->ih_name = Linux-2.6.36.2-lgnas

   Image Name:   Linux-2.6.36.2-lgnas
   Created:      2011-11-30   1:11:14 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2480616 Bytes =  2.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.36.2-lgnas (oneshot97@nas-dev) (gcc version 4.2.0 20070413 (prerelease)) #1 Wed Nov 30 10:11:10 KST 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: LG Advanced Multimedia Storage NC1
[    0.000000] Ignoring unrecognised tag 0x41000403
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot),0x400000@0x100000(kernel),0xb00000@0x500000(rootfs),0x5000000@0x1000000(data) root=/dev/md0 rw lpj=4964352 nas_type=0x00000210
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 124340k/124340k available, 6732k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xc8800000 - 0xfe800000   ( 864 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc0028000   ( 128 kB)
[    0.000000]       .text : 0xc0028000 - 0xc046e000   (4376 kB)
[    0.000000]       .data : 0xc0490000 - 0xc04b9820   ( 167 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU-based detection of stalled CPUs is disabled.
[    0.000000]  Verbose stalled-CPUs detection is disabled.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[    0.000267] Calibrating delay loop (skipped) preset value.. 992.87 BogoMIPS (lpj=4964352)
[    0.000292] pid_max: default: 32768 minimum: 301
[    0.000495] Mount-cache hash table entries: 512
[    0.000928] CPU: Testing write buffer coherency: ok
[    0.004080] NET: Registered protocol family 16
[    0.007050] Kirkwood: MV88F6192-A1, TCLK=166666667.
[    0.007069] Feroceon L2: Enabling L2
[    0.007112] Feroceon L2: Cache support initialised.
[    0.024543] bio: create slab <bio-0> at 0
[    0.025232] vgaarb: loaded
[    0.025975] SCSI subsystem initialized
[    0.026760] usbcore: registered new interface driver usbfs
[    0.027072] usbcore: registered new interface driver hub
[    0.027275] usbcore: registered new device driver usb
[    0.028246] Switching to clocksource orion_clocksource
[    0.045774] NET: Registered protocol family 2
[    0.045919] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.046272] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.046418] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.046496] TCP: Hash tables configured (established 4096 bind 4096)
[    0.046509] TCP reno registered
[    0.046523] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.046558] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.046712] NET: Registered protocol family 1
[    0.046973] RPC: Registered udp transport module.
[    0.046985] RPC: Registered tcp transport module.
[    0.046995] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.047463] cpufreq: Init kirkwood cpufreq driver
[    0.050326] kirkwood_pm_register: Power Management for Marvell Kirkwood.
[    0.051644] Starting Selective Mirror Daemon...
[    0.051678] /proc/s_mirror created !!!!!!!!!!!!!!!!!!!
[    0.051898] VFS: Disk quotas dquot_6.5.2
[    0.051965] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.052678] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.053322] msgmni has been set to 242
[    0.055356] io scheduler noop registered
[    0.055369] io scheduler deadline registered
[    0.055443] io scheduler cfq registered (default)
[    0.064475] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.090589] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.469326] console [ttyS0] enabled
[    0.478018] loop: module loaded
[    0.482355] sata_mv sata_mv.0: version 1.28
[    0.486695] sata_mv sata_mv.0: slots 32 ports 2
[    0.492211] scsi0 : sata_mv
[    0.495638] scsi1 : sata_mv
[    0.498881] ata1: SATA max UDMA/133 irq 21
[    0.503039] ata2: SATA max UDMA/133 irq 21
[    0.508486] NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 8-bit)
[    0.517209] nand_bbm_init: Init nand bad block information...
[    0.523134] nand_bbm_find_pos: nand_bbm_check = 0, erasesize = 20000
[    0.529500] nand_bbm_find_pos: nand_bbm_find_pos: bbm pos = 7800000, pos = 7800000
[    0.537088] Loading nand bad block info(07800000+00020000)...
[    0.553897] nand_bbm_info_load: bbm->magic        = 8192a5a7
[    0.559536] nand_bbm_info_load: bbm->bb_count     = 0
[    0.564580] nand_bbm_info_load: bbm->assign_index = 3ff
[    0.569827] Assign index = 3ff
[    0.572877] nand_bbm_info_load: Loading nand bad block info...ok
[    0.578899] Creating 4 MTD partitions on "orion_nand":
[    0.584044] 0x000000000000-0x000000100000 : "u-boot"
[    0.591096] 0x000000100000-0x000000500000 : "kernel"
[    0.599466] 0x000000500000-0x000001000000 : "rootfs"
[    0.611354] 0x000001000000-0x000008000000 : "data"
[    0.677154] MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.683042] mv643xx_eth smi: probed
[    0.688697] net eth0: port 0 with MAC address 00:50:43:00:02:02
[    0.694860] ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[    0.702933] ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[    0.711744] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.718297] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    0.723578] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    0.760059] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    0.780044] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    0.786799] hub 1-0:1.0: USB hub found
[    0.790572] hub 1-0:1.0: 1 port detected
[    0.795303] Initializing USB Mass Storage driver...
[    0.800405] usbcore: registered new interface driver usb-storage
[    0.806389] USB Mass Storage support registered.
[    0.811284] mice: PS/2 mouse device common for all mice
[    0.816626] i2c /dev entries driver
[    0.877108] rtc-rs5c372 0-0032: r2025sd found, 24hr, driver version 0.6
[    0.884043] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    0.891372] md: linear personality registered for level -1
[    0.896843] md: raid0 personality registered for level 0
[    0.902161] md: raid1 personality registered for level 1
[    0.907975] device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com
[    0.920398] cpuidle: using governor ladder
[    0.924522] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    0.930910] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    0.940084] ata1: SATA link down (SStatus 0 SControl F300)
[    0.970077] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    1.010077] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    1.050073] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    1.090078] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    1.098280] usbcore: registered new interface driver hiddev
[    1.104031] usbcore: registered new interface driver usbhid
[    1.109583] usbhid: USB HID core driver
[    1.181222] usb 1-1: new high speed USB device using orion-ehci and address 2
[    1.331335] hub 1-1:1.0: USB hub found
[    1.335152] hub 1-1:1.0: 4 ports detected
[    1.390486] iomicom 0-0058: NAS HAL Detected io-micom chip at 0x58
[    1.396921] TCP cubic registered
[    1.400326] NET: Registered protocol family 10
[    1.405384] IPv6 over IPv4 tunneling driver
[    1.410250] NET: Registered protocol family 17
[    1.414699] NET: Registered protocol family 5
[    1.419117] Registering the dns_resolver key type
[    1.460073] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    1.467260] ata2.15: Port Multiplier 1.2, 0x11ab:0x4140 r193, 4 ports, feat 0x5/0x1f
[    1.475683] ata2.00: hard resetting link
[    1.990346] ata2.01: hard resetting link
[    2.340927] ata2.02: hard resetting link
[    2.850347] ata2.03: hard resetting link
[    3.240086] ata2.00: ATA-8: ST3500414CS, CA14, max UDMA/133
[    3.245639] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.310099] ata2.00: configured for UDMA/133
[    3.330133] ata2.02: ATAPI: HL-DT-ST BD-RE  BH10NS30, H106, max UDMA/133
[    3.370145] ata2.02: configured for UDMA/133
[    3.450284] ata2: EH complete
[    3.453674] scsi 1:0:0:0: Direct-Access     ATA      ST3500414CS      CA14 PQ: 0 ANSI: 5
[    3.463195] sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    3.471225] sd 1:0:0:0: Attached scsi generic sg0 type 0
[    3.477087] sd 1:0:0:0: [sda] Write Protect is off
[    3.482085] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.550189] scsi 1:2:0:0: CD-ROM            HL-DT-ST BD-RE  BH10NS30  H106 PQ: 0 ANSI: 5
[    3.810126] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[    3.817617] cdrom: Uniform CD-ROM driver Revision: 3.20
[    3.823317]  sda: sda1 sda2 sda3
[    3.829375] sd 1:0:0:0: [sda] Attached SCSI disk
[    3.834102] sr 1:2:0:0: Attached scsi generic sg1 type 5
[    3.896274] rtc-rs5c372 0-0032: setting system clock to 2019-02-26 02:52:41 UTC (1551149561)
[    3.904916] md: Waiting for all devices to be available before autodetect
[    3.911699] md: If you don't use raid, use raid=noautodetect
[    3.918176] md: Autodetecting RAID arrays.
[    3.943491] md: invalid raid superblock magic on sda3
[    3.948528] md: sda3 does not have a valid v0.90 superblock, not importing!
[    3.955500] md: Scanned 3 and added 2 devices.
[    3.959928] md: autorun ...
[    3.962724] md: considering sda2 ...
[    3.966325] md:  adding sda2 ...
[    3.969557] md: sda1 has different UUID to sda2
[    3.974861] md: created md1
[    3.977654] md: bind<sda2>
[    3.980425] md: running: <sda2>
[    3.983824] bio: create slab <bio-1> at 1
[    3.988039] md/raid1:md1: active with 1 out of 2 mirrors
[    3.993487] md1: detected capacity change from 0 to 8000569344
[    3.999459] md: considering sda1 ...
[    4.003078] md:  adding sda1 ...
[    4.006299] md: created md0
[    4.009084] md: bind<sda1>
[    4.011850] md: running: <sda1>
[    4.015373] md/raid1:md0: active with 1 out of 2 mirrors
[    4.020802] md0: detected capacity change from 0 to 22999400448
[    4.026843] md: ... autorun DONE.
[    4.044904]  md0: unknown partition table
[    4.061467] EXT3-fs: barriers not enabled
[    4.351829] kjournald starting.  Commit interval 5 seconds
[    4.357397] EXT3-fs (md0): warning: checktime reached, running e2fsck is recommended
[    4.365491] EXT3-fs (md0): using internal journal
[    4.370423] EXT3-fs (md0): 2 orphan inodes deleted
[    4.375219] EXT3-fs (md0): recovery complete
[    4.392472] EXT3-fs (md0): mounted filesystem with writeback data mode
[    4.399038] VFS: Mounted root (ext3 filesystem) on device 9:0.
[    4.404915] Freeing init memory: 128K
INIT: version 2.88 booting
[    5.002374] ADDRCONF(NETDEV_UP): eth0: link is not ready
 * Loading kernel modules...                                             [ OK ]
 * Starting the hotplug events dispatcher udevd                          [ OK ]
 * Synthesizing the initial hotplug events...                            [ OK ]
 * Waiting for /dev to be fully populated...                                   [    7.560303] md1: detected capacity change from 0 to 8000569344
[    7.603216]  md1: unknown partition table
[    7.843578] md1: detected capacity change from 0 to 8000569344
[    7.871254]  md1: unknown partition table
                                                                         [ OK ]
 * Starting Network Interface Plugging Daemon...                               [    8.255561] eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[    8.262370] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
                                                                         [ OK ]
 * Cleaning up ifupdown...                                               [ OK ]
 * Setting up networking...                                              [ OK ]
 * Setting the system clock...                                           [ OK ]
 * Configuring network interfaces...                                           Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:43:00:02:02
Sending on   LPF/eth0/00:50:43:00:02:02
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 128.222.51.201
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 128.222.51.201
bound to 128.222.51.223 -- renewal in 37848 seconds.
                                                                         [ OK ]
 * Starting system message bus dbus                                      [ OK ]
 * Mounting local filesystems...                                         [ OK ]
 * Activating swapfile swap...                                                 [   20.110426] Adding 7813052k swap on /dev/md1.  Priority:-1 extents:1 across:7813052k 
                                                                         [ OK ]
 * Starting portmap daemon...                                            [ OK ]
 * Starting LPRng printer spooler lpd                                    [ OK ]
 * Starting NFS common utilities                                         [ OK ]
 * Setting kernel variables ...                                          [ OK ]
[   20.794920] fuse init (API version 7.15)
 * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon                       [ OK ]
Starting LLTD Protocol Responder: lld2d.
 * Enabling additional executable binary formats binfmt_misc                    * Registering python2.7                                                 [ OK ]
 * Enable all registered binfmtsstart                                    [ OK ]
 * Starting web server apache2                                                  * Starting db server redis                                              [ OK ]
[Tue Feb 26 11:53:01 2019] [warn] worker http://127.0.0.1:49815 already used by another worker
                                                                         [ OK ]
 * Starting NAS Platform daemon platformd                                      [   34.562326] md: md2 stopped.
[   34.573933] md: bind<sda3>
[   34.656933] md/raid1:md2: active with 1 out of 1 mirrors
[   34.662394] md2: detected capacity change from 0 to 468106207232
[   34.693979] md2: detected capacity change from 0 to 468106207232
[   34.713524]  md2: unknown partition table
[   35.001914] EXT4-fs (md2): warning: checktime reached, running e2fsck is recommended
[   35.304770] EXT4-fs (md2): recovery complete
[   35.359869] EXT4-fs (md2): mounted filesystem with writeback data mode. Opts: data=writeback,usrquota,usrjquota=aquota.user,jqfmt=vfsv1
[   39.342032] sshd (1396): /proc/1396/oom_adj is deprecated, please use /proc/1396/oom_score_adj instead.
 * Starting IP Setup Daemon ip_setupd                                    [ OK ]
Starting nas icon daemon
 * Starting system log daemon...                                         [ OK ]
 * Starting kernel log daemon...                                         [ OK ]
 * Starting periodic command scheduler crond                                   cp: cannot stat `/etc/crontab.tmp': No such file or directory
                                                                         [ OK ]
ODD Manager+ : 11-10-07-00
   ...done.
 * Starting Comnso Daemon cmsdaemon                                      [ OK ]
INIT: Entering runlevel: 2sync                                                 

--------------------------------------------------------------------
  LG Electronics NAS Platform 1 (REV 10094)   LG-NAS ttyS0
--------------------------------------------------------------------

LG-NAS login: 

Re: LG N2B1
February 26, 2019 01:28PM
I took another stab at the dts based on what we can see from that console output.

I made sure it compiles but am not sure whether it would actually work. I'd recommend building the same dtb you've been using first to verify your able to successfully build/package them before trying mine.


/dts-v1/; 

#include "kirkwood.dtsi" 
#include "kirkwood-6281.dtsi" 

/ { 
	model = "LG N2B1"; 
	compatible = "lg,n2b1", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 

	memory { 
		device_type = "memory"; 
		reg = <0x00000000 0x8000000>; 
	}; 

	chosen { 
		bootargs = "console=ttyS0,115200n8"; 
		stdout-path = &uart0; 
	}; 

	ocp@f1000000 { 
		
		rtc@10300 {
			status = "disabled";
		};
	
		serial@12000 { 
			status = "okay"; 
			}; 
		}; 
		
		i2c@11000 {
			status = "okay";
			clock-frequency = <400000>;

			rs5c372: rs5c372@32 {
				status = "okay";
				compatible = "ricoh,rs5c372";
				reg = <0x32>;
			};
		};
		
		sata@80000 {
			status = "okay";
			nr-ports = <2>;
		};
	}; 

&mdio { 
	status = "okay"; 

	ethphy0: ethernet-phy@8 { 
		reg = <8>; 
	}; 
}; 

&eth0 { 
	status = "okay"; 
	ethernet0-port@0 { 
		phy-handle = <&ethphy0>; 
	}; 
}; 

&nand {
	status = "okay";

	partition@0 {
		label = "u-boot";
		reg = <0x0000000 0x100000>;
		read-only;
	};

	partition@100000 {
		label = "kernel";
		reg = <0x100000 0x500000>;
	};

	partition@500000 {
		label = "rootfs";
		reg = <0x0500000 0x1000000>;
	};

	partition@1000000 {
		label = "data";
		reg = <0x1000000 0x8000000>;
	};
};

Re: LG N2B1
February 26, 2019 02:36PM
Awesome thank you. I will work on it as soon as I get home.
Re: LG N2B1
February 26, 2019 06:48PM
having issues getting the required files.
apt-get install device-tree-compiler linux-source-4.9 u-boot-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-source-4.9
E: Couldn't find any package by glob 'linux-source-4.9'
E: Couldn't find any package by regex 'linux-source-4.9'

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: