Welcome! Log In Create A New Profile

Advanced

LG N2R1D

Posted by marcel 
LG N2R1D
December 24, 2019 01:03PM
I still have my old LG N2R1D, i was planning on installing something like Debian or Alpine as it can me nice and minimal, LG does provide sources but i wonder how hard it is compile a kernel for it and maybe upgrade U-Boot if it is any worth updating it. i saw a post somewhat recently for the LG N2B1 which should be similar except having a DVD drive instead of a blu ray drive.

I have in the past tried compiling the kernel on the nas it self and i still regret taking 8 hours for a fail as i couldn't get the kernel deployed on the nas it self.
Re: LG N2R1D
December 24, 2019 04:28PM
marcel,

> I still have my old LG N2R1D, i was planning on
> installing something like Debian

Do you have a boot log that you can post here?

and post

dmesg
cat /proc/cpuinfo
cat /proc/mtd

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: LG N2R1D
December 26, 2019 04:50AM
Getting my nas from my old place today, i can only get the OS side of the logs as i only rooted it (still waiting for a usb to serial adapter)
let me get it.
Re: LG N2R1D
December 26, 2019 05:48AM
I have attached the dmesg due to it being bigger and here is the output of cpuinfo and mtd, I could not find a boot log as boot is empty in the log dir.
root@Neko-Nas:~# cat /proc/cpuinfo
Processor       : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 992.87
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1

Hardware        : LG Advanced Multimedia Storage NC1
Revision        : 0000
Serial          : 0000000000000000

root@Neko-Nas:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "kernel"
mtd2: 00b00000 00020000 "rootfs"
mtd3: 07000000 00020000 "data"

Attachments:
open | download - dmesg.txt (18.4 KB)
Re: LG N2R1D
December 26, 2019 04:17PM
marcel,

The boot log means the log you get with serial console.

This looks like any other Kirkwood box. You can create the rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on a USB flash drive:

https://forum.doozan.com/read.php?2,12096

Scroll down to:

Quote

Updated 25 Aug 2019:

Basic Debian buster Kirkwood rootfs for most Kirwood plugs:

- tarball size: 209M
- install size: 536M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, u-boot-tools, and mtd-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root

Download at Dropbox:

Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2

You can try using the LG N1T1 dtb, see how far you can boot with it.

./dts/kirkwood-n1t1.dtb

I dont have new u-boot for this box, so you need to boot with stock u-boot. Therefore Step 4 in the rootfs instruction is needed:

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Once you install serial console, it is easy to modify u-boot envs to boot the rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on USB.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 12/26/2019 04:20PM by bodhi.
Re: LG N2R1D
December 26, 2019 05:00PM
Hey Bodhi,

Thanks for the the rootfs, i hope i can get an serial adapter early jan,
my nas is similar to the one in https://forum.doozan.com/read.php?2,78389 except his version has a blueray drive and i have a dvd drive

I also checked the diference between the N1T1 and N2B1 and so far i can only find pcie (e?) for second sata with expander and a (IC2?) Display and buttons

how would i make a DTB for this device?
Re: LG N2R1D
December 26, 2019 06:25PM
marcel,

>
> Thanks for the the rootfs, i hope i can get an
> serial adapter early jan,
> my nas is similar to the one in
> https://forum.doozan.com/read.php?2,78389 except
> his version has a blueray drive and i have a dvd
> drive
>
> I also checked the diference between the N1T1 and
> N2B1 and so far i can only find pcie (e?) for
> second sata with expander and a (IC2?) Display and
> buttons

>
> how would i make a DTB for this device?

You would start with the N1T1 or N2B1 DTS. Copy it to kirkwood-n2r1d.dts.

And strip out the differences in peripherals (PCIe, sensors,..). And use the DTC compiler to compile it. And it will give you kirkwood-n2r1d.dtb. Append it uImage and try. Repeat this process until you can boot without error.

If you need help, post and I will compile it for you.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 12/27/2019 04:47AM by bodhi.
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: