Re: Debian Installation on Thecus N2350 (Marvell Armada 385) April 24, 2018 09:25PM |
Admin Registered: 13 years ago Posts: 18,821 |
root@Nsa310s:~# uname -a Linux Nsa310s 4.16.1-kirkwood-tld-1 #1 PREEMPT Mon Apr 9 00:51:18 PDT 2018 armv5tel GNU/Linux root@Nsa310s:~# dpkg -l | grep esekey ii esekeyd 1.2.7-1 armel multimedia keyboard daemon for Linux root@Nsa310s:~# logread -f Apr 24 19:15:55 Nsa310s user.notice logger[2490]: POWER button pushed Apr 24 19:15:58 Nsa310s user.notice logger[2492]: COPY button pushed Apr 24 19:15:58 Nsa310s user.notice logger[2494]: COPY button pushed Apr 24 19:16:00 Nsa310s user.notice logger[2496]: COPY button pushed Apr 24 19:16:00 Nsa310s user.notice logger[2498]: COPY button pushed
pmx_btn_reset: pmx-btn-reset { marvell,pins = "mpp24"; /* OK */ marvell,function = "gpio"; }; pmx_btn_copy: pmx-btn-copy { marvell,pins = "mpp25"; /* OK */ marvell,function = "gpio"; }; pmx_btn_power: pmx-btn-power { marvell,pins = "mpp26"; /* OK */ marvell,function = "gpio"; }; gpio_keys { compatible = "gpio-keys"; #address-cells = <1>; #size-cells = <0>; pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>; pinctrl-names = "default"; button@1 { label = "Power Button"; linux,code = <KEY_POWER>; gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; }; button@2 { label = "Copy Button"; linux,code = <KEY_COPY>; gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; }; button@3 { label = "Reset Button"; linux,code = <KEY_RESTART>; gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; }; };
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) April 25, 2018 01:42AM |
Admin Registered: 13 years ago Posts: 18,821 |
Linux Nas326 4.16.2-mvebu-tld-1 #2 SMP PREEMPT Thu Apr 19 02:47:42 PDT 2018 armv7l GNU/Linux
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) April 28, 2018 08:29PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) April 28, 2018 08:56PM |
Admin Registered: 13 years ago Posts: 18,821 |
env = getenv("firstboot"); if (env && (strcmp(env, "1") == 0)){ setenv("bootcmd", "usb start;" "if fatload usb 0:1 0x2000000 rescue_fw/rescue_fw.img;" "then imi 0x2000000;source 0x2000000;" "else setenv firstboot 0;saveenv;fi;" "ubi part ubifs;ubifsmount boot;ubifsload 0x2000000 boot/bzImage;" "ubifsload 0x3000000 boot/ramdisk;bootm 0x2000000 0x3000000;"); }else{ setenv("bootcmd", "usb start;" "if fatload usb 0:1 0x2000000 rescue_fw/rescue_fw.img;" "then imi 0x2000000;source 0x2000000;fi;" "ubi part ubifs;ubifsmount boot;ubifsload 0x2000000 boot/bzImage;" "ubifsload 0x3000000 boot/ramdisk;bootm 0x2000000 0x3000000;"); }
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) April 30, 2018 05:10PM |
Admin Registered: 13 years ago Posts: 18,821 |
dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00400000 00010000 "U-Boot-img" mtd2: 00300000 00010000 "U-Boot-env"
dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00100000 00001000 "uboot" mtd2: 00010000 00001000 "uboot_env"
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) April 30, 2018 07:46PM |
Admin Registered: 13 years ago Posts: 18,821 |
cat /proc/mtd dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00100000 00001000 "uboot" mtd2: 00010000 00001000 "uboot_env"
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 01, 2018 04:50AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 01, 2018 03:16PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 01, 2018 07:44PM |
Admin Registered: 13 years ago Posts: 18,821 |
setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env) earlyprintk=serial"'
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 02, 2018 04:16AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 02, 2018 04:23AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 02, 2018 04:41AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 02, 2018 05:15PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 02, 2018 07:31PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 02, 2018 08:57PM |
Admin Registered: 13 years ago Posts: 18,821 |
cat Build_Thecus.sh #!/bin/sh export PATH=/usr/local/armv7-marvell-linux-gnueabi-softfp-4.6.4_64K_i686_20160226/bin:/usr/local/gcc-4.9.3/bin:$PATH # To build Uboot export CROSS_COMPILE=arm-marvell-linux-gnueabi- # To Build Bin-Hdr export CROSS_COMPILE_BH=arm-marvell-linux-gnueabi- make mrproper ./build.pl -b armada_38x_customer0 -f spi -v 2015T1_p18_Thecus -i nand:spi -c -o . -m4
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 03, 2018 12:59AM |
Registered: 6 years ago Posts: 104 |
TOOLCHAIN=$PWD/../../gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi export PATH=$TOOLCHAIN/bin:$PATH export CROSS_COMPILE=arm-linux-gnueabi- export CROSS_COMPILE_BH=$CROSS_COMPILE make mrproper ./build.pl -b armada_38x_customer0 -f spi -v 2015T1_p18_Thecus -i nand:spi -c -o . -m4
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 03, 2018 01:50AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 03, 2018 03:48AM |
Admin Registered: 13 years ago Posts: 18,821 |
./download-serial.sh /dev/ttyUSB0 u-boot-a38x-2015T1_p18_Thecus-spi-uart.bin Now reset or power cycle your Armada 38x board and then press enter Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something -1 Sleeping Out of sleep Got something 21 Got NACK (0x15) character The board should be in serial downloader now. Sending the binary file Sending u-boot-a38x-2015T1_p18_Thecus-spi-uart.bin, 7486 blocks: Give your local XMODEM receive command now. Bytes Sent: 958336 BPS:9796 Transfer complete
V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_Board: A38x-Customer0-Thecus-N2350 SoC: MV88F6820 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1066 [MHz] L2 @ 800 [MHz] TClock @ 200 [MHz] DDR4 @ 800 [MHz] DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 1 GiB NAND: 512 MiB MMC: mv_sdh: 0 SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB USB2.0 0: Host Mode USB3.0 0: Host Mode USB3.0 1: Host Mode Map: Code: 0x3fed4000:0x3ff95ce4 BSS: 0x3ffef504 Stack: 0x3f9c3f20 Heap: 0x3f9c4000:0x3fed4000 U-Boot Environment: 0x00100000:0x00110000 (SPI) Board configuration detected: Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | SGMII | 0x01 | egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> ver U-Boot 2013.01 (May 03 2018 - 01:03:35) Marvell version: 2015_T1.0p18-bodhi-tld-1 arm-linux-gnueabi-gcc (Linaro GCC 4.9-2017.01) 4.9.4 GNU ld (Linaro_Binutils-2017.01) 2.24.0.20141017 Linaro 2014_11-3-git
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 03, 2018 05:23PM |
Admin Registered: 13 years ago Posts: 18,821 |
run_script=yes
BootROM - 1.73 Booting from SPI flash General initialization - Version: 1.0.0 AVS selection from EFUSE disabled (Skip reading EFUSE values) Overriding default AVS value to: 0x23 Detected Device ID 6820 High speed PHY - Version: 2.0 Init Customer board board SerDes lanes topology details: | Lane # | Speed| Type | ------------------------------| | 0 | 0 | SGMII0 | | 1 | 3 | SATA0 | | 2 | 3 | SATA1 | | 4 | 5 | USB3 HOST0 | | 5 | 5 | USB3 HOST1 | ------------------------------- High speed PHY - Ended Successfully DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0 DDR4 Training Sequence - Switching XBAR Window to FastPath Window DDR4 Training Sequence - Ended Successfully BootROM: Image checksum verification PASSED __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** U-Boot 2013.01 (Jun 20 2017 - 14:02:04) Marvell version: 2015_T1.0p18 Board: A38x-Customer0-Thecus-N2350 SoC: MV88F6820 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1066 [MHz] L2 @ 800 [MHz] TClock @ 200 [MHz] DDR4 @ 800 [MHz] DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 1 GiB NAND: 512 MiB MMC: mv_sdh: 0 SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB USB2.0 0: Host Mode USB3.0 0: Host Mode USB3.0 1: Host Mode Map: Code: 0x3fed0000:0x3ff959e4 BSS: 0x3ffef104 Stack: 0x3f9bff20 Heap: 0x3f9c0000:0x3fed0000 U-Boot Environment: 0x00100000:0x00110000 (SPI) Board configuration detected: SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB ## Executing script at 3f9d8080 U-Boot custom run script … boot_config=setenv devices "usb ide"; setenv bootdev usb; setenv device 0:1; setenv disks "0 1 2 3 4 5 6 7"; scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done kernel_config=setenv load_dtb_addr 0x1000000; setenv load_initrd_addr 0x3000000; setenv load_image_addr 0x02000000; setenv dtb_file /boot/dts/armada-385-thecus-n2350.dtb load_image=echo loading zImage ...; ext2load $bootdev $device $load_image_addr /boot/zImage load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr) earlyprintk=serial" bootcmd_exec=echo Booting from $bootdev $device …; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; if run load_image; then; if run load_initrd; then if run load_dtb; then bootz $load_image_addr $load_initrd_addr $load_dtb_addr; else bootz $load_image_addr $load_initrd_addr; fi; else if run load_dtb; then bootz $load_image_addr - $load_dtb_addr; else bootz $load_image_addr; fi; fi; fi bootcmd_custom=run boot_config; run kernel_config; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd=echo Booting Debian ...; run bootcmd_custom; echo Booting stock ...; usb reset; if fatload usb 0:1 0x2000000 rescue_fw/rescue_fw.img;then imi 0x2000000;source 0x2000000; fi; ubi part ubifs;ubifsmount boot;ubifsload 0x2000000 boot/bzImage;ubifsload 0x3000000 boot/ramdisk;bootm 0x2000000 0x3000000 Done executing U-boot custom run script … Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | SGMII | 0x01 | egiga0 [PRIME] Hit any key to stop autoboot: 0 Booting Debian ... running scan_disk ... Scan device usb (Re)start USB... USB0: Port (usbActive) : 0 Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0 Anson:xhci_usb_lowlevel_init--2 Anson:Register 2000120 NbrPorts 2 USB XHCI 1.00 Anson:xhci_usb_lowlevel_init--3 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found scanning usb for ethernet devices... 0 Ethernet Device(s) found device usb 0:1 1 bytes read in 303 ms (0 Bytes/s) Found bootable drive on usb 0 Booting from usb 0:1 … loading zImage ... 4325872 bytes read in 404 ms (10.2 MiB/s) loading uInitrd ... 9080165 bytes read in 539 ms (16.1 MiB/s) loading DTB /boot/dts/armada-385-thecus-n2350.dtb ... 19337 bytes read in 966 ms (19.5 KiB/s) ## Loading init Ramdisk from Legacy Image at 03000000 ... Image Name: initramfs-4.16.2-mvebu-tld-1 Created: 2018-04-20 8:46:24 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9080101 Bytes = 8.7 MiB Load Address: 00000000 Entry Point: 00000000 ## Flattened Device Tree blob at 01000000 Booting using the fdt blob at 0x01000000 Loading Device Tree to 00ff8000, end 00fffb88 ... OK Skipping Device Tree update ('fdt_skip_update' = yes) Limit DDR size at 3GB due to power of 2 requirement of Address decoding Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.16.2-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #2 SMP PREEMPT Thu Apr 19 02:47:42 PDT 2018 [ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Thecus N2350 [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] random: fast init done [ 0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s40972 r8192 d24564 u73728 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr) earlyprintk=serial <snip> [ 1.637633] 3 cmdlinepart partitions found on MTD device spi1.0 [ 1.643605] Creating 3 MTD partitions on "spi1.0": [ 1.648424] 0x000000000000-0x000000400000 : "uboot" [ 1.654001] 0x000000100000-0x000000110000 : "uboot_env" [ 1.659857] 0x000000300000-0x000000310000 : "uboot_scr"
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 04, 2018 11:55PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 05, 2018 05:22AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 05, 2018 05:44AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 05, 2018 05:49AM |
Admin Registered: 13 years ago Posts: 18,821 |
if [ -d /sys/class/leds/n2350:white:sys ]; then echo default-on > /sys/class/leds/n2350\:blue\:pwr/trigger echo none > /sys/class/leds/n2350\:red\:pwr/trigger echo default-on > /sys/class/leds/n2350\:white\:sys/trigger echo none > /sys/class/leds/n2350\:red\:sys/trigger echo ide-disk1 > /sys/class/leds/n2350:white:sata1/trigger echo ide-disk2 > /sys/class/leds/n2350:white:sata2/trigger echo usb-host > /sys/class/leds/n2350\:white\:usb/trigger fi
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 05, 2018 08:59PM |
Admin Registered: 13 years ago Posts: 18,821 |
flashcp -v thecus-n2350-boot-script-tld-2.scr /dev/mtd3
fw_setenv run_script yes
fw_setenv run_script no
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 13, 2018 04:25PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 14, 2018 02:35AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 14, 2018 04:10AM |
Admin Registered: 13 years ago Posts: 18,821 |
-rw-r--r-- 1 root root 959584 May 12 16:14 u-boot-a38x-2015T1_p18_Thecus-tld-2-spi.bin -rwxr-xr-x 1 root root 2732 May 13 15:31 thecus-n2350-boot-script-tld-3.sh sha256sum 4c6c17dc5b3e622f95447ba7f8049f0991ffca2636c429f27f176473b3b260fc u-boot-a38x-2015T1_p18_Thecus-tld-2-spi.bin
dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00400000 00010000 "U-Boot-img" mtd2: 00300000 00010000 "U-Boot-env"And dump mtds to backup:
nanddump --noecc --omitoob -f thecus_n2350.mtd0 /dev/mtd0 dd if=/dev/mtd1 of=thecus_n2350.mtd1 bs=4096k conv=sync dd if=/dev/mtd2 of=thecus_n2350.mtd2 bs=3072k conv=sync
flashcp -v u-boot-a38x-2015T1_p18_Thecus-tld-2-spi.bin /dev/mtd1Expected output
Erasing blocks: 15/15 (100%) Writing data: 937k/0k (100%) Verifying data: 937k/0k (100%)
./thecus-n2350-boot-script-tld-3.shExpected output
boot_config=setenv devices "usb ide"; setenv bootdev usb; setenv device 0:1; setenv disks "0 1 2 3 4 5 6 7"; scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done kernel_config=setenv load_dtb_addr 0x1000000; setenv load_initrd_addr 0x3000000; setenv load_image_addr 0x02000000; setenv dtb_file /boot/dts/armada-385-thecus-n2350.dtb load_image=echo loading zImage ...; ext2load $bootdev $device $load_image_addr /boot/zImage load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr) earlyprintk=serial" set_bootargs_stock=setenv bootargs "root=/dev/ram0 rw max_loop=210 console=ttyS0,115200 init=sbin/init rootdelay=3 ubi.mtd=0 mtdparts=armada-nand:-(ubifs);spi_flash:0x00400000(uboot),0x00010000@0x00100000(uboot_env)" bootcmd_exec=echo Booting from $bootdev $device …; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; if run load_image; then; if run load_initrd; then if run load_dtb; then bootz $load_image_addr $load_initrd_addr $load_dtb_addr; else bootz $load_image_addr $load_initrd_addr; fi; else if run load_dtb; then bootz $load_image_addr - $load_dtb_addr; else bootz $load_image_addr; fi; fi; fi bootcmd_custom=run boot_config; run kernel_config; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd=echo Booting Debian ...; run bootcmd_custom; echo Booting stock ...; run set_bootargs_stock; usb reset; if fatload usb 0:1 0x2000000 rescue_fw/rescue_fw.img;then imi 0x2000000;source 0x2000000; fi; ubi part ubifs;ubifsmount boot;ubifsload 0x2000000 boot/bzImage;ubifsload 0x3000000 boot/ramdisk;bootm 0x2000000 0x3000000
U-Boot 2013.01 (May 12 2018 - 16:14:10) Marvell version: 2015_T1.0p18-tld-2
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 14, 2018 04:30AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 14, 2018 02:05PM |
Registered: 6 years ago Posts: 104 |
mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr)
$ cat /proc/mtd dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00400000 00001000 "uboot" mtd2: 00010000 00001000 "uboot_env" mtd3: 00010000 00001000 "uboot_scr"
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 14, 2018 04:47PM |
Admin Registered: 13 years ago Posts: 18,821 |
set_bootargs_stock=setenv bootargs "root=/dev/ram0 rw max_loop=210 console=ttyS0,115200 init=sbin/init rootdelay=3 ubi.mtd=0 mtdparts=armada-nand:-(ubifs);spi_flash:0x00400000(uboot),0x00010000@0x00100000(uboot_env)"Therefore
mtdparts=armada-nand:-(ubifs);spi_flash:0x00400000(uboot),0x00010000@0x00100000(uboot_env)
set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr) earlyprintk=serial"Therefore
mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr)
dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00400000 00010000 "U-Boot-img" mtd2: 00300000 00010000 "U-Boot-env" mtd3: 058c3000 0001f000 "boot" mtd4: 008d7000 0001f000 "etc" mtd5: 16fc3000 0001f000 "rom" mtd6: 01477000 0001f000 "version"
dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00400000 00010000 "U-Boot-img" mtd2: 00300000 00010000 "U-Boot-env"
dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00400000 00001000 "uboot" mtd2: 00010000 00001000 "uboot_env"