Re: LG N1T1 NAS March 28, 2017 04:52AM |
Registered: 8 years ago Posts: 16 |
Mattias Magnusson
Re: LG N1T1 NAS May 29, 2017 04:43PM |
Re: LG N1T1 NAS May 30, 2017 07:45AM |
Registered: 8 years ago Posts: 6 |
Mattias Magnusson
Re: LG N1T1 NAS May 30, 2017 01:54PM |
Mattias Magnusson
Re: LG N1T1 NAS May 31, 2017 10:05AM |
Re: LG N1T1 NAS June 01, 2017 07:46AM |
Registered: 8 years ago Posts: 6 |
Marcel
Re: LG N1T1 NAS July 31, 2017 07:07PM |
Josiah
Re: LG N1T1 NAS September 25, 2017 02:57PM |
Re: LG N1T1 NAS September 30, 2017 10:28AM |
Registered: 8 years ago Posts: 6 |
Josiah
Re: LG N1T1 NAS September 30, 2017 01:03PM |
Clark Leach
Re: LG N1T1 NAS October 12, 2017 02:14PM |
Clark Leach
Re: LG N1T1 NAS October 13, 2017 03:05PM |
Re: LG N1T1 NAS October 13, 2017 06:07PM |
Registered: 10 years ago Posts: 226 |
Sk9
Re: LG N1T1 NAS October 14, 2017 11:09AM |
Josiah
Re: LG N1T1 NAS November 06, 2017 07:10PM |
Re: LG N1T1 NAS November 15, 2017 01:14PM |
Registered: 7 years ago Posts: 56 |
Re: LG N1T1 NAS November 15, 2017 04:05PM |
Admin Registered: 13 years ago Posts: 19,092 |
Re: LG N1T1 NAS November 16, 2017 12:09PM |
Registered: 7 years ago Posts: 56 |
sudo passwd root sudo passwd -u root
sudo -i
cd ~ mkdir stuff
cd ~/stuff wget https://bitly.com/2yTkIaH mv 2yTkIaH linux-4.13.5-kirkwood-tld-1-bodhi.tar.bz2
cd ~/stuff wget https://bitly.com/2gW5oGg mv 2gW5oGg Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
cd /media/superuser/rootfs tar -xjf ~/stuff/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
cd ~/stuff mv ../Downloads/uImage .
cd ~/stuff mv /media/superuser/rootfs/boot/uImage uImageOLD cp uImage /media/superuser/rootfs/boot/
sudo -i gtkterm
LGE-NAS>> usb start (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found
LGE-NAS>> ext2load usb 0:1 0x800000 /boot/uImage .... .............. 3326598 bytes read
setenv console console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env) setenv bootargs_usb root=/dev/sda1 rw rootdelay=10 rootfstype=ext3 setenv bootargs $(console) $(bootargs_usb)
bootm 0x800000
... ... [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1199 (syslogd) . ok [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting system message bus: dbus. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting NTP server: ntpd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1198 (klogd) . ok [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 debian ttyS0 debian login:
debian login: root Password: Linux debian 4.4.0-n1t1-tld-1 #1 PREEMPT Tue Mar 15 14:10:10 CET 2016 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.0.77 netmask 255.255.255.0 broadcast 192.168.222.255
wget https://bitly.com/2yTkIaH mv 2yTkIaH linux-4.13.5-kirkwood-tld-1-bodhi.tar.bz2
scp ~/stuff/linux-4.13.5-kirkwood-tld-1-bodhi.tar.bz2 root@192.168.0.77:/root
The authenticity of host '192.168.0.77 (192.168.0.77)' can't be established. ECDSA key fingerprint is SHA256:X3OIRMgyzDLUVNcgHsfQK4eE+kAVMZ8JVkVPp2RLSH4. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.0.77' (ECDSA) to the list of known hosts. root@192.168.0.77's password: linux-4.13.5-kirkwood-tld-1-bodhi.tar.bz2 100% 30MB 1.5MB/s 00:20
cd /root tar jxvf linux-4.13.5-kirkwood-tld-1-bodhi.tar.bz2 tar xvf linux-dtb-4.13.5-kirkwood-tld-1.tar
dpkg -i linux-image-4.13.5-kirkwood-tld-1_1.0_armel.deb
cd /boot/ cp -a /root/zImage-4.13.5-kirkwood-tld-1 zImage.fdt cat /root/dts/kirkwood-n1t1.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -n Linux-4.13.5-kirkwood-tld-1 -d zImage.fdt uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.13.5-kirkwood-tld-1 -d initrd.img-4.13.5-kirkwood-tld-1 uInitrd
sync reboot
usb start ext2load usb 0:1 0x800000 /boot/uImage
LGE-NAS>> ext2load usb 0:1 0x800000 /boot/uImage .... . 3860410 bytes read
ext2load usb 0:1 0x1100000 /boot/uInitrd
... . 7732059 bytes read
setenv console console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env) setenv bootargs_usb root=/dev/sda1 rw rootdelay=10 rootfstype=ext3 setenv bootargs $(console) $(bootargs_usb)
bootm 0x800000 0x1100000
LGE-NAS>> bootm 0x800000 0x1100000 ## Booting image at 00800000 ..., header_size = 00000040, header_addr = 0068dcdc image_header_t hdr contents hdr->ih_magic = 56190527, hdr->ih_hcrc = f66af729 hdr->ih_time = 88ca0d5a, hdr->ih_size = 003ae77a hdr->ih_load = 00800000, hdr->ih_ep = 00800000 hdr->ih_dcrc = e23a0718 hdr->ih_os = 05, hdr->ih_arch = 02 hdr->ih_type = 02, hdr->ih_comp = 00 hdr->ih_name = Linux-4.13.5-kirkwood-tld-1 Image Name: Linux-4.13.5-kirkwood-tld-1 Created: 2017-11-16 17:27:36 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3860346 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 01100000, header_addr = 0068dcdc, header_size = 00000040 ... RAMdisk image_header_t hdr contents hdr->ih_magic = 56190527, hdr->ih_hcrc = e747bdca hdr->ih_time = 23cb0d5a, hdr->ih_size = 0075fb1b hdr->ih_load = 00000000, hdr->ih_ep = 00000000 hdr->ih_dcrc = 1403cfb0 hdr->ih_os = 05, hdr->ih_arch = 02 hdr->ih_type = 03, hdr->ih_comp = 01 hdr->ih_name = initramfs-4.13.5-kirkwood-tld-1 Image Name: initramfs-4.13.5-kirkwood-tld-1 Created: 2017-11-16 17:30:11 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7731995 Bytes = 7.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
Re: LG N1T1 NAS November 16, 2017 03:59PM |
Registered: 10 years ago Posts: 226 |
Re: LG N1T1 NAS November 16, 2017 05:13PM |
Admin Registered: 13 years ago Posts: 19,092 |
printenv usb start ext2load usb 0:1 0x800000 /boot/uImage
ext2load usb 0:1 0x2100000 /boot/uInitrd
setenv console 'console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env)' setenv bootargs_usb 'root=/dev/sda1 rootdelay=10 earlyprintk=serial' setenv bootargs '$(console) $(bootargs_usb)'
bootm 0x800000 0x2100000
Re: LG N1T1 NAS November 17, 2017 04:03AM |
Registered: 7 years ago Posts: 56 |
LGE-NAS>> usb start (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found LGE-NAS>> ext2load usb 0:1 0x800000 /boot/uImage .... . 3860410 bytes read LGE-NAS>> ext2load usb 0:1 0x2100000 /boot/uInitrd ... . 7732059 bytes read LGE-NAS>> setenv console 'console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env)' LGE-NAS>> setenv bootargs_usb 'root=/dev/sda1 rootdelay=10 earlyprintk=serial' LGE-NAS>> setenv bootargs '$(console) $(bootargs_usb)' LGE-NAS>> bootm 0x800000 0x2100000 ## Booting image at 00800000 ..., header_size = 00000040, header_addr = 0068dcdc image_header_t hdr contents hdr->ih_magic = 56190527, hdr->ih_hcrc = f66af729 hdr->ih_time = 88ca0d5a, hdr->ih_size = 003ae77a hdr->ih_load = 00800000, hdr->ih_ep = 00800000 hdr->ih_dcrc = e23a0718 hdr->ih_os = 05, hdr->ih_arch = 02 hdr->ih_type = 02, hdr->ih_comp = 00 hdr->ih_name = Linux-4.13.5-kirkwood-tld-1 Image Name: Linux-4.13.5-kirkwood-tld-1 Created: 2017-11-16 17:27:36 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3860346 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000, header_addr = 0068dcdc, header_size = 00000040 ... RAMdisk image_header_t hdr contents hdr->ih_magic = 56190527, hdr->ih_hcrc = e747bdca hdr->ih_time = 23cb0d5a, hdr->ih_size = 0075fb1b hdr->ih_load = 00000000, hdr->ih_ep = 00000000 hdr->ih_dcrc = 1403cfb0 hdr->ih_os = 05, hdr->ih_arch = 02 hdr->ih_type = 03, hdr->ih_comp = 01 hdr->ih_name = initramfs-4.13.5-kirkwood-tld-1 Image Name: initramfs-4.13.5-kirkwood-tld-1 Created: 2017-11-16 17:30:11 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7731995 Bytes = 7.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
Re: LG N1T1 NAS November 17, 2017 06:01AM |
Admin Registered: 13 years ago Posts: 19,092 |
Re: LG N1T1 NAS November 17, 2017 08:51AM |
Registered: 7 years ago Posts: 56 |
LGE-NAS>> printenv baudrate=115200 loads_echo=0 ipaddr=10.177.190.59 serverip=10.177.191.39 rootpath=/opt/Orion-SDK/armel-2.0/rootfs netmask=255.255.254.0 run_diag=yes console=console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env) CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_nfs=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage boot_name=u-boot.bin up-boot=tftp 2000000 nt/$(boot_name); sflash protect off; sflash erase all; sflash write 2000000 0 $(filesize) root_path=root=/dev/md0 rw read-kern=ide reset; ext2load ide 0 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; bootm 0x2000000; bootargs_usb=root=/dev/sdc2 rw rootdelay=10 bootcmd_enc=run mem-clear; set bootargs $(console) $(bootargs_ram) 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=run bootcmd_hdd bootcmd_tftp=tftp 0x2000000 $(image_name); setenv bootargs $(console) $(root_path) lpj=4964352; bootm 0x2000000; ethmtu=1500 mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs 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 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no ethact=egiga0 ethaddr=00:E0:91:81:5F:C4 nas_type=0x00000110 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no 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 bootdelay=1 disaMvPnp=no hddPowerCtrl=no enaAutoRecovery=no pcieTune=no Environment size: 2366/4092 bytes LGE-NAS>> usb start (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found LGE-NAS>> ext2load usb 0:1 0x800000 /boot/uImage .... . 3860410 bytes read LGE-NAS>> ext2load usb 0:1 0x2100000 /boot/uInitrd ... . 7732059 bytes read LGE-NAS>> setenv console 'console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env)' LGE-NAS>> setenv bootargs_usb 'root=/dev/sda1 rootdelay=10 earlyprintk=serial' LGE-NAS>> setenv bootargs '$(console) $(bootargs_usb)' LGE-NAS>> printenv baudrate=115200 loads_echo=0 ipaddr=10.177.190.59 serverip=10.177.191.39 rootpath=/opt/Orion-SDK/armel-2.0/rootfs netmask=255.255.254.0 run_diag=yes CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_nfs=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage boot_name=u-boot.bin up-boot=tftp 2000000 nt/$(boot_name); sflash protect off; sflash erase all; sflash write 2000000 0 $(filesize) root_path=root=/dev/md0 rw read-kern=ide reset; ext2load ide 0 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; bootm 0x2000000; bootcmd_enc=run mem-clear; set bootargs $(console) $(bootargs_ram) 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=run bootcmd_hdd bootcmd_tftp=tftp 0x2000000 $(image_name); setenv bootargs $(console) $(root_path) lpj=4964352; bootm 0x2000000; ethmtu=1500 mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs 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 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no ethact=egiga0 ethaddr=00:E0:91:81:5F:C4 nas_type=0x00000110 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no 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 bootdelay=1 disaMvPnp=no hddPowerCtrl=no enaAutoRecovery=no pcieTune=no filesize=75FB5B console=console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env) bootargs_usb=root=/dev/sda1 rootdelay=10 earlyprintk=serial bootargs=$(console) $(bootargs_usb) Environment size: 2434/4092 bytes LGE-NAS>> bootm 0x800000 0x2100000 ## Booting image at 00800000 ..., header_size = 00000040, header_addr = 0068dcdc image_header_t hdr contents hdr->ih_magic = 56190527, hdr->ih_hcrc = f66af729 hdr->ih_time = 88ca0d5a, hdr->ih_size = 003ae77a hdr->ih_load = 00800000, hdr->ih_ep = 00800000 hdr->ih_dcrc = e23a0718 hdr->ih_os = 05, hdr->ih_arch = 02 hdr->ih_type = 02, hdr->ih_comp = 00 hdr->ih_name = Linux-4.13.5-kirkwood-tld-1 Image Name: Linux-4.13.5-kirkwood-tld-1 Created: 2017-11-16 17:27:36 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3860346 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000, header_addr = 0068dcdc, header_size = 00000040 ... RAMdisk image_header_t hdr contents hdr->ih_magic = 56190527, hdr->ih_hcrc = e747bdca hdr->ih_time = 23cb0d5a, hdr->ih_size = 0075fb1b hdr->ih_load = 00000000, hdr->ih_ep = 00000000 hdr->ih_dcrc = 1403cfb0 hdr->ih_os = 05, hdr->ih_arch = 02 hdr->ih_type = 03, hdr->ih_comp = 01 hdr->ih_name = initramfs-4.13.5-kirkwood-tld-1 Image Name: initramfs-4.13.5-kirkwood-tld-1 Created: 2017-11-16 17:30:11 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7731995 Bytes = 7.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
Re: LG N1T1 NAS November 17, 2017 03:56PM |
Admin Registered: 13 years ago Posts: 19,092 |
mainlineLinux=no
mainlineLinux=yes
Re: LG N1T1 NAS November 18, 2017 01:09AM |
Registered: 7 years ago Posts: 56 |
printenv I get baudrate=115200 loads_echo=0 ipaddr=10.177.190.59 serverip=10.177.191.39 rootpath=/opt/Orion-SDK/armel-2.0/rootfs netmask=255.255.254.0 run_diag=yes console=console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env) CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_nfs=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage boot_name=u-boot.bin up-boot=tftp 2000000 nt/$(boot_name); sflash protect off; sflash erase all; sflash write 2000000 0 $(filesize) root_path=root=/dev/md0 rw read-kern=ide reset; ext2load ide 0 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; bootm 0x2000000; bootargs_usb=root=/dev/sdc2 rw rootdelay=10 bootcmd_enc=run mem-clear; set bootargs $(console) $(bootargs_ram) 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=run bootcmd_hdd bootcmd_tftp=tftp 0x2000000 $(image_name); setenv bootargs $(console) $(root_path) lpj=4964352; bootm 0x2000000; ethmtu=1500 mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs 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 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no ethact=egiga0 ethaddr=00:E0:91:81:5F:C4 nas_type=0x00000110 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no 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 bootdelay=1 disaMvPnp=no hddPowerCtrl=no enaAutoRecovery=no pcieTune=no Environment size: 2366/4092 bytes
usb start ext2load usb 0:1 0x800000 /boot/uImage
GE-NAS>> usb start (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found LGE-NAS>> ext2load usb 0:1 0x800000 /boot/uImage .... . 3860410 bytes read
ext2load usb 0:1 0x2100000 /boot/uInitrd
... . 7732059 bytes read
setenv console 'console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env)' setenv bootargs_usb 'root=/dev/sda1 rootdelay=10 earlyprintk=serial' setenv bootargs '$(console) $(bootargs_usb)' setenv mainlineLinux yes printenv
baudrate=115200 loads_echo=0 ipaddr=10.177.190.59 serverip=10.177.191.39 rootpath=/opt/Orion-SDK/armel-2.0/rootfs netmask=255.255.254.0 run_diag=yes CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_nfs=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage boot_name=u-boot.bin up-boot=tftp 2000000 nt/$(boot_name); sflash protect off; sflash erase all; sflash write 2000000 0 $(filesize) root_path=root=/dev/md0 rw read-kern=ide reset; ext2load ide 0 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; bootm 0x2000000; bootcmd_enc=run mem-clear; set bootargs $(console) $(bootargs_ram) 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=run bootcmd_hdd bootcmd_tftp=tftp 0x2000000 $(image_name); setenv bootargs $(console) $(root_path) lpj=4964352; bootm 0x2000000; ethmtu=1500 mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs 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 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no ethact=egiga0 ethaddr=00:E0:91:81:5F:C4 nas_type=0x00000110 stdin=serial stdout=serial stderr=serial enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no 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 bootdelay=1 disaMvPnp=no hddPowerCtrl=no enaAutoRecovery=no pcieTune=no filesize=75FB5B console=console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env) bootargs_usb=root=/dev/sda1 rootdelay=10 earlyprintk=serial bootargs=$(console) $(bootargs_usb) mainlineLinux=yes Environment size: 2435/4092 bytes
bootm 0x800000 0x2100000
LGE-NAS>> bootm 0x800000 0x2100000 ## Booting image at 00800000 ..., header_size = 00000040, header_addr = 0068dcdc image_header_t hdr contents hdr->ih_magic = 56190527, hdr->ih_hcrc = f66af729 hdr->ih_time = 88ca0d5a, hdr->ih_size = 003ae77a hdr->ih_load = 00800000, hdr->ih_ep = 00800000 hdr->ih_dcrc = e23a0718 hdr->ih_os = 05, hdr->ih_arch = 02 hdr->ih_type = 02, hdr->ih_comp = 00 hdr->ih_name = Linux-4.13.5-kirkwood-tld-1 Image Name: Linux-4.13.5-kirkwood-tld-1 Created: 2017-11-16 17:27:36 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3860346 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000, header_addr = 0068dcdc, header_size = 00000040 ... RAMdisk image_header_t hdr contents hdr->ih_magic = 56190527, hdr->ih_hcrc = e747bdca hdr->ih_time = 23cb0d5a, hdr->ih_size = 0075fb1b hdr->ih_load = 00000000, hdr->ih_ep = 00000000 hdr->ih_dcrc = 1403cfb0 hdr->ih_os = 05, hdr->ih_arch = 02 hdr->ih_type = 03, hdr->ih_comp = 01 hdr->ih_name = initramfs-4.13.5-kirkwood-tld-1 Image Name: initramfs-4.13.5-kirkwood-tld-1 Created: 2017-11-16 17:30:11 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7731995 Bytes = 7.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
Re: LG N1T1 NAS November 18, 2017 01:58AM |
Admin Registered: 13 years ago Posts: 19,092 |
Re: LG N1T1 NAS November 18, 2017 12:28PM |
Registered: 7 years ago Posts: 56 |
Re: LG N1T1 NAS November 18, 2017 04:13PM |
Admin Registered: 13 years ago Posts: 19,092 |
Re: LG N1T1 NAS November 18, 2017 04:45PM |
Admin Registered: 13 years ago Posts: 19,092 |
ext2load usb 0:1 0x800000 /boot/uImage ext2load usb 0:1 0x1100000 /boot/uInitrd setenv bootargs $(console) $(bootargs_usb) bootm 0x800000 0x1100000 ...... ...... root@debian:~# uname -a Linux debian 4.6.0-kirkwood-tld-1 #1 PREEMPT Wed May 18 03:54:14 PDT 2016 armv5tel GNU/Linux
Quote
Uncompressing Linux... done, booting the kernel.
Quote
bootargs_usb=root=/dev/sda1 rootdelay=10 earlyprintk=serial
Re: LG N1T1 NAS November 18, 2017 05:08PM |
Admin Registered: 13 years ago Posts: 19,092 |
Quote
https://forum.doozan.com/read.php?2,12096
Updated 24 Jul 2017:
Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:
- tarball size: 188M
- install size: 488M
- 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, and sysvinit-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-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
md5:
bf3d29569943875df348fb5ca03b348c
sha256:
4ed5714fdb123cdb40e973f3d0754e91cd199b75a9874018f2b5dc9cfa8ae8bb
And remember to check the hash of what you download, as always.
Installation:
Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too).
Note: all steps below must be done while logging in as root user (not sudo). If you are not the root user then don't continue, because the rootfs will not work.
1. Format a new USB drive with a single Ext3 partition, and label it rootfs. If you are running the latest U-Boot for Kirkwood then you can use Ext4.
2. Mount the drive on a Linux box. cd to top level directory and extract it. It is assuming the USB drive is mounted at /media/sdb1
cd /media/sdb1 tar -xjf Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
3. Adjust fstab (optional).
Edit /media/sdb1/etc/fstab entry for root device to match the rootfstype of your rootfstype if you use Ext4 or Ext2. However, you can keep it as is without problem in booting since the kernel will figure out which file system the rootfs was formatted.
LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-n1t1.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage sync
If your Linux box does not have mkimage, then install it
apt-get install u-boot-tools
5. Done. Take this USB rootfs to your plug and cold start. After booted into Debian, see Note1 and Note2 below. It is very important that you do Note1 steps to secure your box
setenv console 'console=ttyS0,115200 mtdparts=spi_flash:0x78000@0(uboot),0x1000@0x78000(env)' setenv bootargs_usb 'root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv bootargs '$(console) $(bootargs_usb)' setenv mainlineLinux yes usb start ext2load usb 0:1 0x800000 /boot/uImage ext2load usb 0:1 0x1100000 /boot/uInitrd printenv bootargs printenv bootm 0x800000 0x1100000