LG-NAS N4B1

Install Arch Linux ARM on other devices.

LG-NAS N4B1

Postby BnBorg » Sat Jul 23, 2011 8:33 pm

I am interested in upgrading my LG-NAS. It is running Linux "LG-NAS" 2.6.22.7 on an armv5tejl:

$this->bbcode_second_pass_code('', 'Linux LG-NAS 2.6.22.7 #3 Tue Nov 3 09:14:31 KST 2009 armv5tejl unknown
root@LG-NAS:~>
root@LG-NAS:~>
root@LG-NAS:~> cat /proc/cpuinfo
Processor : ARM926EJ-S rev 0 (v5l)
BogoMIPS : 499.71
Features : swp half thumb fastmult vfp edsp
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 0
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 32768
I assoc : 1
I line length : 32
I sets : 1024
D size : 32768
D assoc : 4
D line length : 32
D sets : 256

Hardware : Feroceon
Revision : 0000
Serial : 0000000000000000')

It has uses BusyBox v1.8.2 for the commen commands. It boots off the hard drive(s), loading the kernel from /boot and using U-Boot from 2008. It does have fw_printenv, with fw_setenv linked to it. It also has a number of other flash utilitys, flashcp flash _lock, _unlock, _erase, and _eraseall.

$this->bbcode_second_pass_code('', 'root@LG-NAS:/usr/local/bin> fw_printenv
bootdelay=2
baudrate=115200
loads_echo=0
rootpath=/opt/Orion-SDK/arm/
cpuName=926
bootargs=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:egiga0:none
image_name=uImage
ide_num=0:1
bootcmd_stand=ide reset; ext2load ide $(ide_num) 0x400000 /boot/$(image_name); setenv bootargs console=ttyS0,115200 root=/dev/md0 rw; bootm 0x400000;
bootcmd_nfs=tftpboot 0x400000 $(image_name); setenv bootargs console=ttyS0,115200 root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x400000;
bootcmd=ide reset; ext2load ide $(ide_num) 0x400000 /boot/$(image_name); setenv bootargs console=ttyS0,115200 root=/dev/md0 rw; bootm 0x400000;
standalone=fsload 0x400000 $(image_name);setenv bootargs $(bootargs) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x400000;
eth1addr=****
pciMode=host
usb0Mode=host
ethact=egiga0
serialNo=****
ethaddr=****
enc_err=Addr: ***, Data : ***

serverip=192.168.2.253
ipaddr=192.168.2.47
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
dnsip=192.168.2.253
gatewayip=192.168.2.254
stdin=serial
stdout=serial
stderr=serial
enaDebugLed=yes
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
enaVFP=yes
enaWrAllo=yes
enaICPref=yes
enaDCPref=yes
disaMvPnp=no
overEthAddr=no
LGDIAG_MAIN=OK
LGDIAG_TWSI=OK
LGDIAG_MICOM=OK
LGDIAG_RTC=OK
LGDIAG_DRAM=OK
LGDIAG_PHY=OK
LGDIAG_PCI=OK
LGDIAG_FAN=OK')
BnBorg
 
Posts: 10
Joined: Mon Jul 18, 2011 7:26 pm

Re: LG-NAS N4B1

Postby BnBorg » Mon Jul 25, 2011 12:13 am

Yes, /dev/md1 is the system drive, /dev/md2 is swap and /dev/md3 is user shares. There are four drives, each is partitioned the same. There is also a Blu-ray recorder. I enabled root access and telnet by editing /etc/init.d/rcS on one of the drives, off line. I brought it up with just that drive, and then added the others one by one.

$this->bbcode_second_pass_code('', 'root@LG-NAS:~> fdisk /dev/sda

255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 244 1959898+ fd Linux raid autodetect
/dev/sda2 245 276 257040 fd Linux raid autodetect
/dev/sda3 277 243201 1951295062+ fd Linux raid autodetect

root@LG-NAS:~> cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md1 : active raid1 sdd2[0] sdc2[2](S) sdb2[3](S) sda2[1]
256960 blocks [2/2] [UU]

md2 : active raid5 sdd3[0] sdc3[1] sdb3[2] sda3[3]
5853882048 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

md0 : active raid1 sdd1[0] sdc1[2](S) sdb1[3](S) sda1[1]
1959808 blocks [2/2] [UU]

unused devices: <none>')

With no drives, or on a new install, there is a button combination that will boot the install cd. It's fussy about that cd. I tried burning an edited one but it was rejected.

I do have a copy of the source code I found on the LG site. With U-Boot on it, there are a lot of possibilities for trying things out. But I am not a developer so I am feeling my way in the dark.
BnBorg
 
Posts: 10
Joined: Mon Jul 18, 2011 7:26 pm


Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 47 guests