HOWTO: Lenovo ix2-dl / Stock U-Boot, boot current kernel, access printenv from Debian, load kernel from GPT ide drive October 19, 2018 08:38PM |
Registered: 6 years ago Posts: 125 |
** ix2-nand ** ** uboot_ver:0.0.8 ** ** MARVELL BOARD: DB-88F6282A-BP LE U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz SysClock = 533Mhz , TClock = 200Mhz DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7 DRAM CS[0] base 0x00000000 size 256MB DRAM Total size 256MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:1024 MB Found ADT7473, program PWM1 ... OK Flash: 0 kB Marvell Serial ATA Adapter Integrated Sata device found [0 0 0]: Enable DMA mode (6) Device 0 @ 0 0: Model: ST2000DM001-1CH164 Firm: CC26 Ser#: Z2F0PEJZ Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512) [0 1 0]: Enable DMA mode (6) Device 1 @ 0 1: Model: ST1000DM003-9YN162 Firm: CC9D Ser#: Z1D0F6TF Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) CPU : Marvell Feroceon (Rev 1) Found kernel at 0x100000 Found initrd at 0x400000 Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. PEX 1: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found .... .................................................................................................................. .................................................................................................................. .................................................................................................................. ........................... 3834683 bytes read .... .................................................................................................................. ............................................ . .................................................................................................................. .................................................................................................................. ................... .................................................................................................................. .................................................................................................................. .................................................................................................................. ................................................... 8268888 bytes read ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-10-20 0:48:49 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3834619 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2018-10-20 0:49:12 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 8268824 Bytes = 7.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ...
Hit any key to stop autoboot: 0 Marvell>> printenv baudrate=115200 loads_echo=0 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes MALLOC_len=1 ethprime=egiga0 bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr): $(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; lcd0_enable=0 lcd0_params=640x480-16@60 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 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes ethact=egiga0 kernel_size=0x300000 loadzimage=nand read.e 0x40000 $(kernel_start) $(kernel_size) loadinitrd=nand read.e 0x900000 $(initrd_start) $(initrd_size) console=console=ttyS0,115200 bootargs_root=root=/dev/ram0 initrdimage=mfginitrd ipaddr=192.168.1.2 mfgmodel=ix2 preroot_ver=0.0.2 uboot_ver=0.0.8 serial_number=5563Y01011G33400015J0H1 ethaddr=00:D0:B8:15:62:7F serialNo=V7AD360054 modelname=70A69003AP fw_ver=4.0.4.14600d serialno=1,01qImmfct4zUs3yki67JMy2LfVN603V+W1CY2gpTd1BPOPOB+KEBaLjxL2hhBGH2Rz,V7AD360054, runintime=10800 ftpserver=192.168.43.4 testfile=100M mfgtest_state=system_tested_ok pre_path=IX2/1.0.8/download_runin.sh pre_path_conf=IX2/1.0.8/download_runin.conf pre_serverip=192.168.32.4 pre_user=ixxrunin pre_passwd=123 pre_dirzi=IX2/1.0.8 serverip=192.168.32.4 initrd_size=0x400000 arcNumber=1682 load_uImage=ext2load usb 0:1 0x800000 /uImage bootcmd=run=loadzimage mk_mtdparts=setenv=mtdparts mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2), $(kernel_size)@$(kernel_start)(uImage),$(initrd_size)@$(initrd_start)(initrd),0x3f800000@0x800000(boot),1024m@0x0 (flash) rootdelay=10 usb_root=LABEL=rootfs bootcmd=run usb_boot usb_boot=usb start; run load_uimage; run load_initrd; bootm 0x800000 0x1100000 bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000 (env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000 (boot),1024m@0x0(flash) earlyprintk=serial rootfstype=ext3 load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd load_uimage=ext2load usb 0:1 0x800000 /boot/uImage stdin=serial stdout=serial stderr=serial mainlineLinux=yes 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 kernel_start=0x100000 initrd_start=0x400000 bootdelay=3 disaMvPnp=no enaAutoRecovery=yes pcieTune=no pcieTune1=no Environment size: 2620/131067 bytes
root@bagend:/boot# ls . .. System.map-4.10.9-kirkwood-tld-1 System.map-4.11.3-kirkwood-tld-2 System.map-4.12.1-kirkwood-tld-1 System.map-4.4.0-kirkwood-tld-1 config-4.10.9-kirkwood-tld-1 config-4.11.3-kirkwood-tld-2 config-4.12.1-kirkwood-tld-1 config-4.4.0-kirkwood-tld-1 dts initrd.img-4.10.9-kirkwood-tld-1 initrd.img-4.11.3-kirkwood-tld-2 initrd.img-4.12.1-kirkwood-tld-1 initrd.img-4.4.0-kirkwood-tld-1 linux-4.10.9-kirkwood-tld-1-bodhi.tar.bz2 linux-4.10.9-kirkwood-tld-1.patch linux-4.11.3-kirkwood-tld-2-bodhi.tar.bz2 linux-4.11.3-kirkwood-tld-2.patch linux-4.12.1-kirkwood-tld-1-bodhi.tar.bz2 linux-4.12.1-kirkwood-tld-1.patch linux-dtb-4.10.9-kirkwood-tld-1.tar linux-dtb-4.11.3-kirkwood-tld-2.tar linux-dtb-4.12.1-kirkwood-tld-1.tar linux-headers-4.10.9-kirkwood-tld-1_1.0_armel.deb linux-headers-4.11.3-kirkwood-tld-2_2.0_armel.deb linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb linux-image-4.10.9-kirkwood-tld-1_1.0_armel.deb linux-image-4.11.3-kirkwood-tld-2_2.0_armel.deb linux-image-4.12.1-kirkwood-tld-1_1.0_armel.deb uImage uImage.4.11 uImage.4.12 uImage.4.4 uImage.orig uImage4.10 uInitrd uInitrd.4.11 uInitrd.4.12 uInitrd.4.4 uInitrd4.10 vmlinuz-4.10.9-kirkwood-tld-1 vmlinuz-4.11.3-kirkwood-tld-2 vmlinuz-4.12.1-kirkwood-tld-1 vmlinuz-4.4.0-kirkwood-tld-1 zImage-4.10.9-kirkwood-tld-1 zImage-4.11.3-kirkwood-tld-2 zImage-4.12.1-kirkwood-tld-1 zImage-4.4.0-kirkwood-tld-1 zImage.fdt
Re: Lenovo ix2-dl won't boot with kernel newer than 4.10.9 October 19, 2018 09:10PM |
Admin Registered: 13 years ago Posts: 18,976 |
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
boot
Re: Lenovo ix2-dl won't boot with kernel newer than 4.10.9 October 19, 2018 09:28PM |
Registered: 6 years ago Posts: 125 |
** MARVELL BOARD: DB-88F6282A-BP LE U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz SysClock = 533Mhz , TClock = 200Mhz DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7 DRAM CS[0] base 0x00000000 size 256MB DRAM Total size 256MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:1024 MB Found ADT7473, program PWM1 ... OK Flash: 0 kB Marvell Serial ATA Adapter Integrated Sata device found [0 0 0]: Enable DMA mode (6) Device 0 @ 0 0: Model: ST2000DM001-1CH164 Firm: CC26 Ser#: Z2F0PEJZ Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512) [0 1 0]: Enable DMA mode (6) Device 1 @ 0 1: Model: ST1000DM003-9YN162 Firm: CC9D Ser#: Z1D0F6TF Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) CPU : Marvell Feroceon (Rev 1) Found kernel at 0x100000 Found initrd at 0x400000 Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. PEX 1: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd.4.12' Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage.4.12' Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000' Marvell>> boot (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found .... ................................................................................................................................................................................................................................................................................................................................................................................. 3834683 bytes read .... .............................................................................................................................................................. . ....................................................................................................................................................................................................................................................... ......................................................................................................................................................................................................................................................................................................................................................................................................... 8268888 bytes read ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-10-20 0:48:49 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3834619 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2018-10-20 0:49:12 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 8268824 Bytes = 7.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... [ 5.592150] console [ttyS0] enabled [ 5.599237] bootconsole [earlycon0] disabled [ 5.614425] loop: module loaded [ 5.618037] sata_mv f1080000.sata: slots 32 ports 2 [ 5.625058] scsi host0: sata_mv [ 5.628542] scsi host1: sata_mv [ 5.631876] ata1: SATA max UDMA/133 irq 34 [ 5.636037] ata2: SATA max UDMA/133 irq 34 [ 5.641374] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00 [ 5.648447] libphy: Fixed MDIO Bus: probed [ 5.653172] libphy: orion_mdio_bus: probed [ 5.661413] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 5.764296] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:15:62:7f [ 5.773139] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 5.779734] ehci-pci: EHCI PCI platform driver [ 5.784264] ehci-orion: EHCI orion driver [ 5.788441] orion-ehci f1050000.ehci: EHCI Host Controller [ 5.794003] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 5.801811] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000 [ 5.833399] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 5.839622] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 5.846466] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.853775] usb usb1: Product: EHCI Host Controller [ 5.858677] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 5.865441] usb usb1: SerialNumber: f1050000.ehci [ 5.870759] hub 1-0:1.0: USB hub found [ 5.874600] hub 1-0:1.0: 1 port detected [ 5.879079] usbcore: registered new interface driver usb-storage [ 5.885465] mousedev: PS/2 mouse device common for all mice [ 5.891516] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 5.898580] i2c /dev entries driver [ 5.903967] hidraw: raw HID events driver (C) Jiri Kosina [ 5.909690] drop_monitor: Initializing network drop monitor service [ 5.916207] NET: Registered protocol family 17 [ 5.920735] Key type dns_resolver registered [ 5.925660] registered taskstats version 1 [ 5.929769] Loading compiled-in X.509 certificates [ 5.934668] zswap: loaded using pool lzo/zbud [ 5.947499] Key type big_key registered [ 5.959342] Key type encrypted registered [ 5.964603] rtc-mv f1010300.rtc: setting system clock to 2018-10-20 02:18:41 UTC (1540001921) [ 6.133410] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.144301] ata1.00: ATA-8: ST2000DM001-1CH164, CC26, max UDMA/133 [ 6.150543] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 6.233397] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.370015] ata1.00: configured for UDMA/133 [ 6.384795] scsi 0:0:0:0: Direct-Access ATA ST2000DM001-1CH1 CC26 PQ: 0 ANSI: 5 [ 6.393819] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 6.401604] sd 0:0:0:0: [sda] 4096-byte physical blocks [ 6.407304] sd 0:0:0:0: [sda] Write Protect is off [ 6.412240] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.477485] sda: sda1 sda2 [ 6.481617] sd 0:0:0:0: [sda] Attached SCSI disk [ 6.750947] usb 1-1: New USB device found, idVendor=058f, idProduct=6387 [ 6.757707] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.764902] usb 1-1: Product: Mass Storage Device [ 6.769629] usb 1-1: Manufacturer: JetFlash [ 6.773845] usb 1-1: SerialNumber: SOHTINDY [ 6.778707] usb-storage 1-1:1.0: USB Mass Storage device detected [ 6.785072] usb-storage 1-1:1.0: Quirks match for vid 058f pid 6387: 400 [ 6.791877] scsi host2: usb-storage 1-1:1.0 [ 6.903410] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.914205] ata2.00: ATA-8: ST1000DM003-9YN162, CC9D, max UDMA/133 [ 6.920417] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 6.933943] ata2.00: configured for UDMA/133 [ 6.948668] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1 CC9D PQ: 0 ANSI: 5 [ 6.957705] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) [ 6.965698] sd 1:0:0:0: [sdb] 4096-byte physical blocks [ 6.971006] sd 1:0:0:0: [sdb] Write Protect is off [ 6.975935] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 7.277986] sdb: sdb1 sdb2 [ 7.282186] sd 1:0:0:0: [sdb] Attached SCSI disk [ 7.289784] Freeing unused kernel memory: 1024K Loading, please wait... [ 7.354137] systemd-udevd[122]: starting version 215 [ 7.486507] usbcore: registered new interface driver uas [ 7.510946] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 7.539861] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 7.867273] scsi 2:0:0:0: Direct-Access JetFlash TS4GJFV30 8.07 PQ: 0 ANSI: 2 [ 7.878647] sd 2:0:0:0: [sdc] 7987198 512-byte logical blocks: (4.09 GB/3.81 GiB) [ 7.886273] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 7.897611] sd 2:0:0:0: [sdc] Write Protect is off [ 7.902844] sd 2:0:0:0: [sdc] No Caching mode page found [ 7.908300] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 8.239842] sdc: sdc1 sdc2 [ 8.249997] sd 2:0:0:0: [sdc] Attached SCSI removable disk Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Warning: INITRDSTART set to "none" in /etc/default/mdadm, not assembling raid arrays [ 17.829403] device-mapper: uevent: version 1.0.3 [ 17.835753] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com done. Begin: Running /scripts/local-premount ... done. Begin: Will now check root file system ... fsck from util-linux 2.25.2 [/sbin/fsck.ext2 (1) -- /dev/sdc1] fsck.ext2 -a -C0 /dev/sdc1 rootfs: clean, 32009/196608 files, 482618/786432 blocks done. done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher: udevd[ 19.562753] systemd-udevd[317]: starting version 215 . ok [....] Synthesizing the initial hotplug events...[ 19.811957] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ ok done. [ 19.903636] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [....] Waiting for /dev to be fully populated...[ 19.962697] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 19.962822] adt7475 0-002e: ADT7473 device, revision 0 [ 19.962828] adt7475 0-002e: Optional features: fan4 pwm2 [ 20.154035] random: crng init done [ 20.238612] orion_wdt: Initial timeout 21 sec [ 20.321269] marvell-cesa f1030000.crypto: CESA device successfully registered done. [ 21.120608] md: md0 stopped. [ 21.247304] md/raid1:md0: active with 2 out of 2 mirrors [ 21.256228] md0: detected capacity change from 0 to 21457928192 [ 21.357849] md: md1 stopped. [ 21.406312] md1: detected capacity change from 0 to 2957586194432 [ ok ] Assembling MD array md0...done (started [2/2]). [ ok ] Assembling MD array md1...done (started [2/2]). [ ok ] Generating udev events for MD arrays...done. [....] Setting parameters of disc: /dev/sda: setting Advanced Power Management level to 0x64 (100) setting standby to 60 (5 minutes) APM_level = 100 [ ok v/sda. /dev/sdc: setting Advanced Power Management level to 0x64 (100) setting standby to 60 (5 minutes) APM_level = not supported [ ok v/sdc. /dev/sda setting standby to 60 (5 minutes) /dev/sdc setting standby to 60 (5 minutes) . ok [ ok ] Setting up LVM Volume Groups...done. [....] Checking root file system...fsck from util-linux 2.25.2 rootfs: clean, 32009/196608 files, 482618/786432 blocks done. [ ok ] Activating lvm and md swap...done. [....] Checking file systems...fsck from util-linux 2.25.2 /dev/mapper/793957d3_vg-lv7f68d3d7: clean, 11975/180518912 files, 518544111/722066432 blocks /dev/mapper/md0_vg-vol1: clean, 4436/1048576 files, 479735/4189184 blocks done. [ 24.253469] ------------[ cut here ]------------ [ 24.258190] WARNING: CPU: 0 PID: 524 at drivers/md/md.c:2273 set_in_sync+0x2c/0x128 [md_mod] [ 24.266693] Modules linked in: linear raid1 md_mod evdev marvell_cesa orion_wdt adt7475 hwmon_vid kirkwood_thermal gpio_keys uio_pdrv_genirq uio ext2 dm_mod dax fixed sg uas [ 24.282292] CPU: 0 PID: 524 Comm: md0_raid1 Not tainted 4.12.1-kirkwood-tld-1 #1 [ 24.289755] Hardware name: Marvell Kirkwood (Flattened Device Tree) [ 24.296078] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14) [ 24.303888] [<c010ab48>] (show_stack) from [<c0118454>] (__warn+0xd0/0xfc) [ 24.310805] [<c0118454>] (__warn) from [<c0118524>] (warn_slowpath_null+0x1c/0x24) [ 24.318463] [<c0118524>] (warn_slowpath_null) from [<bf0d87b0>] (set_in_sync+0x2c/0x128 [md_mod]) [ 24.327471] [<bf0d87b0>] (set_in_sync [md_mod]) from [<bf0e236c>] (md_check_recovery+0x2ac/0x63c [md_mod]) [ 24.337234] [<bf0e236c>] (md_check_recovery [md_mod]) from [<bf104484>] (raid1d+0x24/0x16c8 [raid1]) [ 24.346468] [<bf104484>] (raid1d [raid1]) from [<bf0d858c>] (md_thread+0x174/0x184 [md_mod]) [ 24.355001] [<bf0d858c>] (md_thread [md_mod]) from [<c0133f14>] (kthread+0x120/0x13c) [ 24.362874] [<c0133f14>] (kthread) from [<c01070f0>] (ret_from_fork+0x14/0x24) [ 24.370147] ---[ end trace ac90be1ee5e0eab5 ]--- [ ok ] Loading kernel modules...done. [ ok ] Cleaning up temporary files... /tmp. [ 24.880003] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: data=ordered,commit=120 [ 24.890428] EXT4-fs (dm-2): Unrecognized mount option "realatime" or missing value [....] Mounting local filesystems...mount: wrong fs type, bad option, bad superblock on /dev/mapper/md0_vg-vol1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. failed. [ ok ] Activating swapfile swap...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables ...done. [ 26.233336] NET: Registered protocol family 10 [ 26.238672] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 26.244718] Segment Routing with IPv6 [ 28.513034] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 28.522950] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ ok ] Configuring network interfaces...done. [ ok ] Starting rpcbind daemon.... [ ok ] Starting NFS common utilities: statd idmapd. [ 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... 1488 (syslogd) . ok [ ok ] Starting system message bus: dbus. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [ 34.205398] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 34.214377] NFSD: starting 90-second grace period (net c0d94190) [ ok ] Exporting directories for NFS kernel daemon.... [ ok ] Starting NFS kernel daemon: nfsd mountd. [ ok ] Starting NTP server: ntpd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1489 (klogd) . ok /dev/sda: setting Advanced Power Management level to 0x64 (100) setting standby to 200 (16 minutes + 40 seconds) APM_level = 100 /dev/sdc: setting Advanced Power Management level to 0x64 (100) SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 setting standby to 200 (16 minutes + 40 seconds) SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a Debian GNU/Linux 8 bagend ttyS0
Re: Lenovo ix2-dl won't boot with kernel newer than 4.10.9 October 19, 2018 09:37PM |
Admin Registered: 13 years ago Posts: 18,976 |
uImage: 0x800000 uInitrd: 0x1100000
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 02:55PM |
Registered: 6 years ago Posts: 125 |
bootcmd=run loadzimage; run loadinitrd; run mk_mtdparts; setenv bootargs $(console) $(bootargs_root) $(bootargs_end) $(mtdparts); bootm 0x40000 0x900000 mk_mtdparts=setenv mtdparts mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),$(kernel_size)@$(kernel_start)(uImage),$(initrd_size)@$(initrd_start)(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) bootargs=console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none
Marvell>> boot NAND read: device 0 offset 0x100000, size 0x300000 Reading data from 0x3ff800 -- 100% complete. 3145728 bytes read: OK NAND read: device 0 offset 0x400000, size 0x400000 Bad block at 0x6c0000 in erase block from 0x6c0000 will be skipped Reading data from 0x81f800 -- 100% complete. 4194304 bytes read: OK ## Booting image at 00040000 ... Image Name: Linux-2.6.31.8 Created: 2016-12-01 11:32:54 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2502676 Bytes = 2.4 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 00900000 ... Image Name: Created: 2016-12-01 11:59:26 UTC Image Type: ARM Linux RAMDisk Image (bzip2 compressed) Data Size: 2995825 Bytes = 2.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ...
USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found .... ........................................................... ....................................................................................................................................................................................................................................................................................................................................................... 4170789 bytes read .... ......................................................................................................................................................................................................................................................................................................................................................................................................................... ........................................................................................................................................................................................................................................................................................................................................................................... .............................................. .................................................................................. .............................................. 9762728 bytes read ## Booting image at 00800000 ... Image Name: Linux-4.18.4-kirkwood-tld-1 Created: 2018-10-20 19:07:48 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4170725 Bytes = 4 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.18.4-kirkwood-tld-1 Created: 2018-10-20 19:08:21 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9762664 Bytes = 9.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ...
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 05:10PM |
Admin Registered: 13 years ago Posts: 18,976 |
Quote
It seems the new kernel is a bit larger and the ramdisk is much larger. Where do I go from here?
cat /proc/mtd cat /etc/fw_env.config fw_printenv
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 05:25PM |
Registered: 6 years ago Posts: 125 |
root@bagend:/# cat /proc/mtd dev: size erasesize name
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
root@bagend:/# fw_printenv Cannot open /dev/mtd0: No such file or directory
[ 7769.813187] reboot: Restarting system __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** ix2-nand ** ** uboot_ver:0.0.8 ** ** MARVELL BOARD: DB-88F6282A-BP LE U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz SysClock = 533Mhz , TClock = 200Mhz DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7 DRAM CS[0] base 0x00000000 size 256MB DRAM Total size 256MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:1024 MB Found ADT7473, program PWM1 ... OK Flash: 0 kB Marvell Serial ATA Adapter Integrated Sata device found [0 0 0]: Enable DMA mode (6) Device 0 @ 0 0: Model: ST2000DM001-1CH164 Firm: CC26 Ser#: Z2F0PEJZ Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512) [0 1 0]: Enable DMA mode (6) Device 1 @ 0 1: Model: ST1000DM003-9YN162 Firm: CC9D Ser#: Z1D0F6TF Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) CPU : Marvell Feroceon (Rev 1) Found kernel at 0x100000 Found initrd at 0x400000 Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. PEX 1: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found .... ........................................................... ....................................................................................................................................................................................................................................................................................................................................................... 4170789 bytes read .... ......................................................................................................................................................................................................................................................................................................................................................................................................................... ........................................................................................................................................................................................................................................................................................................................................................................... .............................................. .................................................................................. .............................................. 9762728 bytes read ## Booting image at 00800000 ... Image Name: Linux-4.18.4-kirkwood-tld-1 Created: 2018-10-20 19:07:48 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4170725 Bytes = 4 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.18.4-kirkwood-tld-1 Created: 2018-10-20 19:08:21 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9762664 Bytes = 9.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... [ 5.787084] console [ttyS0] enabled [ 5.794093] bootconsole [earlycon0] disabled [ 5.807992] loop: module loaded [ 5.811637] sata_mv f1080000.sata: slots 32 ports 2 [ 5.818519] scsi host0: sata_mv [ 5.822079] scsi host1: sata_mv [ 5.825373] ata1: SATA max UDMA/133 irq 34 [ 5.829534] ata2: SATA max UDMA/133 irq 34 [ 5.834828] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00 [ 5.841840] libphy: Fixed MDIO Bus: probed [ 5.846492] libphy: orion_mdio_bus: probed [ 5.854706] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 5.959803] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:15:62:7f [ 5.968634] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 5.975247] ehci-pci: EHCI PCI platform driver [ 5.979767] ehci-orion: EHCI orion driver [ 5.983941] orion-ehci f1050000.ehci: EHCI Host Controller [ 5.989493] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 5.997400] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000 [ 6.028950] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.035193] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 6.043523] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.050843] usb usb1: Product: EHCI Host Controller [ 6.055741] usb usb1: Manufacturer: Linux 4.18.4-kirkwood-tld-1 ehci_hcd [ 6.062507] usb usb1: SerialNumber: f1050000.ehci [ 6.067718] hub 1-0:1.0: USB hub found [ 6.071563] hub 1-0:1.0: 1 port detected [ 6.076019] usbcore: registered new interface driver usb-storage [ 6.082355] mousedev: PS/2 mouse device common for all mice [ 6.088371] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 6.095554] i2c /dev entries driver [ 6.101038] hidraw: raw HID events driver (C) Jiri Kosina [ 6.106756] drop_monitor: Initializing network drop monitor service [ 6.113334] NET: Registered protocol family 17 [ 6.117873] Key type dns_resolver registered [ 6.122974] registered taskstats version 1 [ 6.127086] Loading compiled-in X.509 certificates [ 6.131991] zswap: loaded using pool lzo/zbud [ 6.153620] Key type big_key registered [ 6.165237] Key type encrypted registered [ 6.170827] rtc-mv f1010300.rtc: setting system clock to 2018-10-20 22:22:49 UTC (1540074169) [ 6.438948] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.966653] usb 1-1: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.41 [ 6.974890] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.982086] usb 1-1: Product: Mass Storage Device [ 6.986811] usb 1-1: Manufacturer: JetFlash [ 6.991028] usb 1-1: SerialNumber: SOHTINDY [ 6.995768] usb-storage 1-1:1.0: USB Mass Storage device detected [ 7.002147] usb-storage 1-1:1.0: Quirks match for vid 058f pid 6387: 400 [ 7.008984] scsi host2: usb-storage 1-1:1.0 [ 8.101860] scsi 2:0:0:0: Direct-Access JetFlash TS4GJFV30 8.07 PQ: 0 ANSI: 2 [ 8.112186] sd 2:0:0:0: [sda] 7987198 512-byte logical blocks: (4.09 GB/3.81 GiB) [ 8.120177] sd 2:0:0:0: [sda] Write Protect is off [ 8.125425] sd 2:0:0:0: [sda] No Caching mode page found [ 8.130809] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 8.143422] sda: sda1 sda2 [ 8.148555] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 9.548957] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 9.559745] ata1.00: ATA-8: ST2000DM001-1CH164, CC26, max UDMA/133 [ 9.565952] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 12.603475] ata1.00: configured for UDMA/133 [ 12.618154] scsi 0:0:0:0: Direct-Access ATA ST2000DM001-1CH1 CC26 PQ: 0 ANSI: 5 [ 12.627053] sd 0:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 12.635198] sd 0:0:0:0: [sdb] 4096-byte physical blocks [ 12.640555] sd 0:0:0:0: [sdb] Write Protect is off [ 12.645464] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 12.730768] sdb: sdb1 sdb2 [ 12.734796] sd 0:0:0:0: [sdb] Attached SCSI disk [ 13.138957] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 13.149739] ata2.00: ATA-8: ST1000DM003-9YN162, CC9D, max UDMA/133 [ 13.155950] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 13.373442] ata2.00: configured for UDMA/133 [ 13.388107] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1 CC9D PQ: 0 ANSI: 5 [ 13.396997] sd 1:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) [ 13.404972] sd 1:0:0:0: [sdc] 4096-byte physical blocks [ 13.410310] sd 1:0:0:0: [sdc] Write Protect is off [ 13.415221] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 13.489540] sdc: sdc1 sdc2 [ 13.493535] sd 1:0:0:0: [sdc] Attached SCSI disk [ 13.501143] Freeing unused kernel memory: 1024K [ 13.506074] Checked W+X mappings: passed, no W+X pages found Loading, please wait... starting version 232 [ 13.591220] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 13.598904] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 13.610643] random: udevadm: uninitialized urandom read (16 bytes read) [ 13.888184] usbcore: registered new interface driver uas [ 14.393552] md1: detected capacity change from 0 to 2957586194432 [ 14.635272] device-mapper: uevent: version 1.0.3 [ 14.641958] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com Begin: Loading essential drivers ... [ 15.059428] raid6: int32x1 gen() 114 MB/s [ 15.229167] raid6: int32x1 xor() 80 MB/s [ 15.399175] raid6: int32x2 gen() 146 MB/s [ 15.569156] raid6: int32x2 xor() 115 MB/s [ 15.739148] raid6: int32x4 gen() 157 MB/s [ 15.909093] raid6: int32x4 xor() 107 MB/s [ 16.079177] raid6: int32x8 gen() 164 MB/s [ 16.249099] raid6: int32x8 xor() 112 MB/s [ 16.253387] raid6: using algorithm int32x8 gen() 164 MB/s [ 16.258810] raid6: .... xor() 112 MB/s, rmw enabled [ 16.263725] raid6: using intx1 recovery algorithm [ 16.272725] xor: measuring software checksum speed [ 16.369159] arm4regs : 1446.400 MB/sec [ 16.468980] 8regs : 868.000 MB/sec [ 16.568944] 32regs : 1262.400 MB/sec [ 16.573142] xor: using function: arm4regs (1446.400 MB/sec) [ 16.586210] async_tx: api initialized (async) done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Will now check root file system ... fsck from util-linux 2.29.2 [/sbin/fsck.ext4 (1) -- /dev/sdb1] fsck.ext4 -a -C0 /dev/sdb1 sataroot: clean, 48890/1310720 files, 959000/5242880 blocks done. [ 26.862855] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ 28.415580] random: crng init done [ 28.419000] random: 7 urandom warning(s) missed due to ratelimiting [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ ok [ 29.001726] input: gpio-keys as /devices/platform/gpio-keys/input/input0 done. [....] Waiting for /dev to be fully populated...[ 29.206796] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 29.299569] marvell-cesa f1030000.crypto: CESA device successfully registered [ 29.309922] adt7475 0-002e: ADT7473 device, revision 0 [ 29.316246] orion_wdt: Initial timeout 21 sec [ 29.336205] adt7475 0-002e: Optional features: fan4 pwm2 [ 29.343036] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 29.372807] sd 0:0:0:0: Attached scsi generic sg1 type 0 [ 29.403627] sd 1:0:0:0: Attached scsi generic sg2 type 0 done. [....] Setting up LVM Volume Groups... WARNING: Failed to connect to lvmetad. Falling back to device scanning. done. [ 31.089051] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro [....] Activating lvm and md swap...[ 31.867143] Adding 1048572k swap on /mnt/swapfile. Priority:-2 extents:7 across:1499136k FS done. [....] Checking file systems...fsck from util-linux 2.29.2 /dev/mapper/793957d3_vg-lv7f68d3d7: clean, 11975/180518912 files, 518544111/722066432 blocks done. [ ok ] Cleaning up temporary files... /tmp. [ 32.788577] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: data=ordered,commit=120 [ ok ] Mounting local filesystems...done. [ ok ] Activating swapfile swap...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ 34.433110] NET: Registered protocol family 10 [ 34.439752] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 34.445759] Segment Routing with IPv6 [....] Configuring network interfaces...[ 36.588140] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 36.598053] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ 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... 1287 (syslogd) . ok [ ok ] Starting LVM2 metadata daemon: lvmetad. [ ok ] Starting system message bus: dbus. [ ok ] Starting LVM2 poll daemon: lvmpolld. [ ok ] Starting MD monitoring service: mdadm --monitor. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [ ok ] Starting NFS common utilities: statd idmapd. [ 42.991493] NFSD: starting 90-second grace period (net f000001c) [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1285 (klogd) . ok [ ok ] Exporting directories for NFS kernel daemon.... [ ok ] Starting NFS kernel daemon: nfsd mountd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [ ok ] Starting NTP server: ntpd. /dev/sda: setting Advanced Power Management level to 0x64 (100) SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 setting standby to 200 (16 minutes + 40 seconds) SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 APM_level = not supported /dev/sdc: setting Advanced Power Management level to 0x64 (100) setting standby to 200 (16 minutes + 40 seconds) APM_level = 100 Debian GNU/Linux 9 bagend ttyS0 bagend login: root Password: Last login: Sun Oct 21 07:10:10 AEDT 2018 on ttyS0 Linux bagend 4.18.4-kirkwood-tld-1 #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018 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. root@bagend:~# fw_printenv Cannot open /dev/mtd0: No such file or directory
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 05:30PM |
Registered: 6 years ago Posts: 125 |
root@bagend:/dev# ls . loop0 sda tty14 tty37 tty6 .. loop1 sda1 tty15 tty38 tty60 793957d3_vg loop2 sda2 tty16 tty39 tty61 MAKEDEV loop3 sdb tty17 tty4 tty62 autofs loop4 sdb1 tty18 tty40 tty63 block loop5 sdb2 tty19 tty41 tty7 bsg loop6 sdc tty2 tty42 tty8 btrfs-control loop7 sdc1 tty20 tty43 tty9 bus mapper sdc2 tty21 tty44 ttyS0 char md sg0 tty22 tty45 ttyS1 console md1 sg1 tty23 tty46 ubi_ctrl cpu_dma_latency mem sg2 tty24 tty47 uhid cuse memory_bandwidth shm tty25 tty48 uinput disk net snapshot tty26 tty49 urandom dm-0 network_latency snd tty27 tty5 vcs fd network_throughput stderr tty28 tty50 vcs1 full null stdin tty29 tty51 vcsa fuse port stdout tty3 tty52 vcsa1 gpiochip0 ppp tty tty30 tty53 vga_arbiter gpiochip1 psaux tty0 tty31 tty54 vhci i2c-0 ptmx tty1 tty32 tty55 watchdog input pts tty10 tty33 tty56 watchdog0 kmsg random tty11 tty34 tty57 zero log rtc tty12 tty35 tty58 loop-control rtc0 tty13 tty36 tty59
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 06:45PM |
Admin Registered: 13 years ago Posts: 18,976 |
Starting kernel ... [ 5.787084] console [ttyS0] enabledSo I cannot tell if you bootargs is correct or not. Apparently you have not adjusted the bootargs fully to include the mtdparts. That's why there is no mtd.
uname -a cat /proc/cmdline dmesg
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 07:56PM |
Registered: 6 years ago Posts: 125 |
uname -a Linux bagend 4.18.4-kirkwood-tld-1 #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018 armv5tel GNU/Linux root@bagend:/dev# cat /proc/cmdline console=ttyS0,115200 root=LABEL=sataroot rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000 (uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) earlyprintk=serial :::DB88FXX81:eth0:none
root@bagend:/# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.18.4-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018 [ 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: Lenovo IX2-ng [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 65536 [ 0.000000] Normal zone: 512 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 65536 pages, LIFO batch:15 [ 0.000000] random: get_random_bytes called from start_kernel+0x78/0x4e8 with crng_init=0 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=sataroot rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000 (uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) earlyprintk=serial :::DB88FXX81:eth0:none [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Memory: 236872K/262144K available (8192K kernel code, 799K rwdata, 2148K rodata, 1024K init, 279K bss, 25272K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0x(ptrval) - 0x(ptrval) (9184 kB) .init : 0x(ptrval) - 0x(ptrval) (1024 kB) .data : 0x(ptrval) - 0x(ptrval) ( 800 kB) .bss : 0x(ptrval) - 0x(ptrval) ( 280 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.007817] Switching to timer-based delay loop, resolution 5ns [ 0.014145] Console: colour dummy device 80x30 [ 0.018627] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.029134] pid_max: default: 32768 minimum: 301 [ 0.033979] Security Framework initialized [ 0.038203] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.044792] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.052664] CPU: Testing write buffer coherency: ok [ 0.058706] Setting up static identity map for 0x100000 - 0x100058 [ 0.065054] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.070404] Hierarchical SRCU implementation. [ 0.077340] devtmpfs: initialized [ 0.084863] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.094724] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.101108] prandom: seed boundary self test passed [ 0.109144] prandom: 100 self tests passed [ 0.113226] pinctrl core: initialized pinctrl subsystem [ 0.119470] NET: Registered protocol family 16 [ 0.124419] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.131846] audit: initializing netlink subsys (disabled) [ 0.138195] audit: type=2000 audit(0.120:1): state=initialized audit_enabled=0 res=1 [ 0.146132] cpuidle: using governor ladder [ 0.150344] cpuidle: using governor menu [ 0.154776] Feroceon L2: Enabling L2 [ 0.158397] Feroceon L2: Cache support initialised. [ 0.163516] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.177955] No ATAGs? [ 0.184597] vgaarb: loaded [ 0.189901] SCSI subsystem initialized [ 0.193776] libata version 3.00 loaded. [ 0.193958] usbcore: registered new interface driver usbfs [ 0.199519] usbcore: registered new interface driver hub [ 0.204863] usbcore: registered new device driver usb [ 0.210053] pps_core: LinuxPPS API ver. 1 registered [ 0.214994] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.224105] PTP clock support registered [ 0.228922] clocksource: Switched to clocksource orion_clocksource [ 0.318323] VFS: Disk quotas dquot_6.6.0 [ 0.322330] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.336300] NET: Registered protocol family 2 [ 0.341279] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes) [ 0.348914] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [ 0.355921] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.362307] TCP: Hash tables configured (established 2048 bind 2048) [ 0.368698] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.374551] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.380957] NET: Registered protocol family 1 [ 0.385768] RPC: Registered named UNIX socket transport module. [ 0.391717] RPC: Registered udp transport module. [ 0.396398] RPC: Registered tcp transport module. [ 0.401100] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.407514] PCI: CLS 0 bytes, default 32 [ 0.407702] Unpacking initramfs... [ 1.053937] Freeing initrd memory: 9536K [ 1.058123] NetWinder Floating Point Emulator V0.97 (double precision) [ 1.065566] Initialise system trusted keyrings [ 1.070055] Key type blacklist registered [ 1.074222] workingset: timestamp_bits=30 max_order=16 bucket_order=0 [ 1.080753] zbud: loaded [ 1.084039] NFS: Registering the id_resolver key type [ 1.089155] Key type id_resolver registered [ 1.093318] Key type id_legacy registered [ 1.097312] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.104024] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 1.110598] jffs2: version 2.2. (NAND) (SUMMARY) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. [ 1.117764] fuse init (API version 7.27) [ 1.121988] orangefs_debugfs_init: called with debug mask: :none: :0: [ 1.128532] orangefs_init: module version upstream loaded [ 1.133926] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled [ 2.558929] random: fast init done [ 5.590006] Key type asymmetric registered [ 5.594086] Asymmetric key parser 'x509' registered [ 5.599220] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 5.606580] io scheduler noop registered [ 5.610546] io scheduler deadline registered [ 5.614871] io scheduler cfq registered (default) [ 5.620663] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 5.629512] mv_xor f1060800.xor: Marvell shared XOR driver [ 5.689545] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 5.697001] mv_xor f1060900.xor: Marvell shared XOR driver [ 5.759543] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 5.767170] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 5.774475] console [ttyS0] disabled [ 5.778077] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 27, base_baud = 12500000) is a 16550A [ 5.787084] console [ttyS0] enabled [ 5.794093] bootconsole [earlycon0] disabled [ 5.807992] loop: module loaded [ 5.811423] sata_mv f1080000.sata: version 1.28 [ 5.811637] sata_mv f1080000.sata: slots 32 ports 2 [ 5.818519] scsi host0: sata_mv [ 5.822079] scsi host1: sata_mv [ 5.825373] ata1: SATA max UDMA/133 irq 34 [ 5.829534] ata2: SATA max UDMA/133 irq 34 [ 5.834828] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00 [ 5.841840] libphy: Fixed MDIO Bus: probed [ 5.846492] libphy: orion_mdio_bus: probed [ 5.854706] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 5.959803] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:15:62:7f [ 5.968634] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 5.975247] ehci-pci: EHCI PCI platform driver [ 5.979767] ehci-orion: EHCI orion driver [ 5.983941] orion-ehci f1050000.ehci: EHCI Host Controller [ 5.989493] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 5.997400] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000 [ 6.028950] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.035193] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 6.043523] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.050843] usb usb1: Product: EHCI Host Controller [ 6.055741] usb usb1: Manufacturer: Linux 4.18.4-kirkwood-tld-1 ehci_hcd [ 6.062507] usb usb1: SerialNumber: f1050000.ehci [ 6.067718] hub 1-0:1.0: USB hub found [ 6.071563] hub 1-0:1.0: 1 port detected [ 6.076019] usbcore: registered new interface driver usb-storage [ 6.082355] mousedev: PS/2 mouse device common for all mice [ 6.088371] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 6.095554] i2c /dev entries driver [ 6.101038] hidraw: raw HID events driver (C) Jiri Kosina [ 6.106756] drop_monitor: Initializing network drop monitor service [ 6.113334] NET: Registered protocol family 17 [ 6.117873] Key type dns_resolver registered [ 6.122974] registered taskstats version 1 [ 6.127086] Loading compiled-in X.509 certificates [ 6.131991] zswap: loaded using pool lzo/zbud [ 6.153620] Key type big_key registered [ 6.165237] Key type encrypted registered [ 6.170827] rtc-mv f1010300.rtc: setting system clock to 2018-10-20 22:22:49 UTC (1540074169) [ 6.438948] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.966653] usb 1-1: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.41 [ 6.974890] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.982086] usb 1-1: Product: Mass Storage Device [ 6.986811] usb 1-1: Manufacturer: JetFlash [ 6.991028] usb 1-1: SerialNumber: SOHTINDY [ 6.995768] usb-storage 1-1:1.0: USB Mass Storage device detected [ 7.002147] usb-storage 1-1:1.0: Quirks match for vid 058f pid 6387: 400 [ 7.008984] scsi host2: usb-storage 1-1:1.0 [ 8.101860] scsi 2:0:0:0: Direct-Access JetFlash TS4GJFV30 8.07 PQ: 0 ANSI: 2 [ 8.112186] sd 2:0:0:0: [sda] 7987198 512-byte logical blocks: (4.09 GB/3.81 GiB) [ 8.120177] sd 2:0:0:0: [sda] Write Protect is off [ 8.124991] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 8.125425] sd 2:0:0:0: [sda] No Caching mode page found [ 8.130809] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 8.143422] sda: sda1 sda2 [ 8.148555] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 9.548957] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 9.559745] ata1.00: ATA-8: ST2000DM001-1CH164, CC26, max UDMA/133 [ 9.565952] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 12.603475] ata1.00: configured for UDMA/133 [ 12.618154] scsi 0:0:0:0: Direct-Access ATA ST2000DM001-1CH1 CC26 PQ: 0 ANSI: 5 [ 12.627053] sd 0:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 12.635198] sd 0:0:0:0: [sdb] 4096-byte physical blocks [ 12.640555] sd 0:0:0:0: [sdb] Write Protect is off [ 12.645370] sd 0:0:0:0: [sdb] Mode Sense: 00 3a 00 00 [ 12.645464] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 12.730768] sdb: sdb1 sdb2 [ 12.734796] sd 0:0:0:0: [sdb] Attached SCSI disk [ 13.138957] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 13.149739] ata2.00: ATA-8: ST1000DM003-9YN162, CC9D, max UDMA/133 [ 13.155950] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 13.373442] ata2.00: configured for UDMA/133 [ 13.388107] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1 CC9D PQ: 0 ANSI: 5 [ 13.396997] sd 1:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) [ 13.404972] sd 1:0:0:0: [sdc] 4096-byte physical blocks [ 13.410310] sd 1:0:0:0: [sdc] Write Protect is off [ 13.415127] sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00 [ 13.415221] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 13.489540] sdc: sdc1 sdc2 [ 13.493535] sd 1:0:0:0: [sdc] Attached SCSI disk [ 13.501143] Freeing unused kernel memory: 1024K [ 13.506074] Checked W+X mappings: passed, no W+X pages found [ 13.591220] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 13.598904] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 13.610643] random: udevadm: uninitialized urandom read (16 bytes read) [ 13.888184] usbcore: registered new interface driver uas [ 14.393552] md1: detected capacity change from 0 to 2957586194432 [ 14.635272] device-mapper: uevent: version 1.0.3 [ 14.641958] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com [ 15.059428] raid6: int32x1 gen() 114 MB/s [ 15.229167] raid6: int32x1 xor() 80 MB/s [ 15.399175] raid6: int32x2 gen() 146 MB/s [ 15.569156] raid6: int32x2 xor() 115 MB/s [ 15.739148] raid6: int32x4 gen() 157 MB/s [ 15.909093] raid6: int32x4 xor() 107 MB/s [ 16.079177] raid6: int32x8 gen() 164 MB/s [ 16.249099] raid6: int32x8 xor() 112 MB/s [ 16.253387] raid6: using algorithm int32x8 gen() 164 MB/s [ 16.258810] raid6: .... xor() 112 MB/s, rmw enabled [ 16.263725] raid6: using intx1 recovery algorithm [ 16.272725] xor: measuring software checksum speed [ 16.369159] arm4regs : 1446.400 MB/sec [ 16.468980] 8regs : 868.000 MB/sec [ 16.568944] 32regs : 1262.400 MB/sec [ 16.573142] xor: using function: arm4regs (1446.400 MB/sec) [ 16.586210] async_tx: api initialized (async) [ 26.862855] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null) [ 28.415580] random: crng init done [ 28.419000] random: 7 urandom warning(s) missed due to ratelimiting [ 29.001726] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 29.206796] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 29.299569] marvell-cesa f1030000.crypto: CESA device successfully registered [ 29.309922] adt7475 0-002e: ADT7473 device, revision 0 [ 29.316246] orion_wdt: Initial timeout 21 sec [ 29.336205] adt7475 0-002e: Optional features: fan4 pwm2 [ 29.343036] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 29.372807] sd 0:0:0:0: Attached scsi generic sg1 type 0 [ 29.403627] sd 1:0:0:0: Attached scsi generic sg2 type 0 [ 31.089051] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro [ 31.867143] Adding 1048572k swap on /mnt/swapfile. Priority:-2 extents:7 across:1499136k FS [ 32.788577] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: data=ordered,commit=120 [ 34.433110] NET: Registered protocol family 10 [ 34.439752] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 34.445759] Segment Routing with IPv6 [ 36.588140] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 36.598053] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 42.991493] NFSD: starting 90-second grace period (net f000001c) root@bagend:/#
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 07:58PM |
Registered: 6 years ago Posts: 125 |
cat /proc/mtd dev: size erasesize name mtd0: 0007e000 00001000 "u-boot" mtd1: 00001000 00001000 "env" mtd2: 00001000 00001000 "env2"
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 08:52PM |
Registered: 6 years ago Posts: 125 |
root@storage:/# cat /proc/cmdline console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) root@storage:/# cat /proc/mtd dev: size erasesize name mtd0: 00080000 00020000 "uboot" mtd1: 00020000 00020000 "env" mtd2: 00020000 00020000 "env2" mtd3: 00300000 00020000 "uImage" mtd4: 00400000 00020000 "initrd" mtd5: 3f800000 00020000 "boot" mtd6: 40000000 00020000 "flash"
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 09:17PM |
Registered: 6 years ago Posts: 125 |
cat /proc/mtd dev: size erasesize name mtd0: 00080000 00020000 "uboot" mtd1: 00020000 00020000 "env" mtd2: 00020000 00020000 "env2" mtd3: 00300000 00020000 "Partition_003"
Starting kernel ... [ 5.787108] console [ttyS0] enabled [ 5.794120] bootconsole [earlycon0] disabled [ 5.808027] loop: module loaded [ 5.811675] sata_mv f1080000.sata: slots 32 ports 2 [ 5.818560] scsi host0: sata_mv [ 5.822115] scsi host1: sata_mv [ 5.825399] ata1: SATA max UDMA/133 irq 33 [ 5.829558] ata2: SATA max UDMA/133 irq 33 [ 5.834301] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd3 [ 5.840772] nand: Samsung NAND 1GiB 3,3V 8-bit [ 5.845238] nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 5.852960] Scanning device for bad blocks [ 5.860331] Bad eraseblock 54 at 0x0000006c0000 [ 6.003748] Bad eraseblock 2380 at 0x000012980000 [ 6.142990] Bad eraseblock 4629 at 0x0000242a0000 [ 6.338964] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.360890] Bad eraseblock 8086 at 0x00003f2c0000 [ 6.365672] ata1.00: ATA-8: ST2000DM001-1CH164, CC26, max UDMA/133 [ 6.378180] 4 cmdlinepart partitions found on MTD device orion_nand [ 6.384498] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 6.391472] Creating 4 MTD partitions on "orion_nand": [ 6.396799] 0x000000000000-0x000000080000 : "uboot" [ 6.402684] 0x0000000a0000-0x0000000c0000 : "env" [ 6.407491] ata1.00: configured for UDMA/133 [ 6.412503] 0x0000000c0000-0x0000000e0000 : "env2" [ 6.418004] 0x000000100000-0x000000400000 : "Partition_003"
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 10:00PM |
Admin Registered: 13 years ago Posts: 18,976 |
cat /proc/cmdlinefor this?
root@storage:/# cat /proc/cmdline console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) root@storage:/# cat /proc/mtd dev: size erasesize name mtd0: 00080000 00020000 "uboot" mtd1: 00020000 00020000 "env" mtd2: 00020000 00020000 "env2" mtd3: 00300000 00020000 "uImage" mtd4: 00400000 00020000 "initrd" mtd5: 3f800000 00020000 "boot" mtd6: 40000000 00020000 "flash"
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 20, 2018 10:22PM |
Registered: 6 years ago Posts: 125 |
cat /proc/mtd dev: size erasesize name mtd0: 00080000 00020000 "uboot" mtd1: 00020000 00020000 "env" mtd2: 00020000 00020000 "env2" mtd3: 00300000 00020000 "uImage" mtd4: 00400000 00020000 "initrd" mtd5: 3f800000 00020000 "boot"
cat /proc/cmdline console=ttyS0,115200 root=LABEL=sataroot :::DB88FXX81:eth0:none mtdparts=orion_nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.18.4-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018 [ 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: Lenovo IX2-dl [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 65536 [ 0.000000] Normal zone: 512 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 65536 pages, LIFO batch:15 [ 0.000000] random: get_random_bytes called from start_kernel+0x78/0x4e8 with crng_init=0 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=sataroot :::DB88FXX81:eth0:none mtdparts=orion_nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Memory: 236868K/262144K available (8192K kernel code, 799K rwdata, 2148K rodata, 1024K init, 279K bss, 25276K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0x(ptrval) - 0x(ptrval) (9184 kB) .init : 0x(ptrval) - 0x(ptrval) (1024 kB) .data : 0x(ptrval) - 0x(ptrval) ( 800 kB) .bss : 0x(ptrval) - 0x(ptrval) ( 280 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000035] Switching to timer-based delay loop, resolution 5ns [ 0.000482] Console: colour dummy device 80x30 [ 0.000514] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000533] pid_max: default: 32768 minimum: 301 [ 0.000785] Security Framework initialized [ 0.000905] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000923] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001749] CPU: Testing write buffer coherency: ok [ 0.002902] Setting up static identity map for 0x100000 - 0x100058 [ 0.003117] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.003314] Hierarchical SRCU implementation. [ 0.005927] devtmpfs: initialized [ 0.009931] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.009954] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.010267] prandom: seed boundary self test passed [ 0.013421] prandom: 100 self tests passed [ 0.013431] pinctrl core: initialized pinctrl subsystem [ 0.014444] NET: Registered protocol family 16 [ 0.014822] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.015384] audit: initializing netlink subsys (disabled) [ 0.015643] audit: type=2000 audit(0.010:1): state=initialized audit_enabled=0 res=1 [ 0.016585] cpuidle: using governor ladder [ 0.016666] cpuidle: using governor menu [ 0.017058] Feroceon L2: Enabling L2 [ 0.017093] Feroceon L2: Cache support initialised. [ 0.017371] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.021413] No ATAGs? [ 0.027883] vgaarb: loaded [ 0.028165] SCSI subsystem initialized [ 0.028332] libata version 3.00 loaded. [ 0.028510] usbcore: registered new interface driver usbfs [ 0.028555] usbcore: registered new interface driver hub [ 0.028600] usbcore: registered new device driver usb [ 0.028712] pps_core: LinuxPPS API ver. 1 registered [ 0.028720] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.028740] PTP clock support registered [ 0.029519] clocksource: Switched to clocksource orion_clocksource [ 0.113001] VFS: Disk quotas dquot_6.6.0 [ 0.113076] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.120134] NET: Registered protocol family 2 [ 0.120733] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes) [ 0.120760] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [ 0.120791] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.120821] TCP: Hash tables configured (established 2048 bind 2048) [ 0.120890] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.120913] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.121066] NET: Registered protocol family 1 [ 0.121559] RPC: Registered named UNIX socket transport module. [ 0.121569] RPC: Registered udp transport module. [ 0.121575] RPC: Registered tcp transport module. [ 0.121580] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.121590] PCI: CLS 0 bytes, default 32 [ 0.121773] Unpacking initramfs... [ 0.764598] Freeing initrd memory: 9536K [ 0.764743] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.765658] Initialise system trusted keyrings [ 0.765702] Key type blacklist registered [ 0.765890] workingset: timestamp_bits=30 max_order=16 bucket_order=0 [ 0.765960] zbud: loaded [ 0.766735] NFS: Registering the id_resolver key type [ 0.766759] Key type id_resolver registered [ 0.766766] Key type id_legacy registered [ 0.766782] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.766790] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.767022] jffs2: version 2.2. (NAND) (SUMMARY) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. [ 0.767182] fuse init (API version 7.27) [ 0.767481] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.767625] orangefs_init: module version upstream loaded [ 0.767634] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled [ 2.559525] random: fast init done [ 5.212712] Key type asymmetric registered [ 5.212725] Asymmetric key parser 'x509' registered [ 5.212789] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 5.212799] io scheduler noop registered [ 5.212806] io scheduler deadline registered [ 5.212884] io scheduler cfq registered (default) [ 5.213915] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 5.215428] mv_xor f1060800.xor: Marvell shared XOR driver [ 5.270135] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 5.270339] mv_xor f1060900.xor: Marvell shared XOR driver [ 5.330129] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 5.330524] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 5.331471] console [ttyS0] disabled [ 5.331532] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 26, base_baud = 12500000) is a 16550A [ 5.979304] console [ttyS0] enabled [ 5.988150] loop: module loaded [ 5.991582] sata_mv f1080000.sata: version 1.28 [ 5.991797] sata_mv f1080000.sata: slots 32 ports 2 [ 5.998686] scsi host0: sata_mv [ 6.002235] scsi host1: sata_mv [ 6.005525] ata1: SATA max UDMA/133 irq 33 [ 6.009683] ata2: SATA max UDMA/133 irq 33 [ 6.014425] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd3 [ 6.020899] nand: Samsung NAND 1GiB 3,3V 8-bit [ 6.025362] nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 6.033084] Scanning device for bad blocks [ 6.040459] Bad eraseblock 54 at 0x0000006c0000 [ 6.183914] Bad eraseblock 2380 at 0x000012980000 [ 6.323113] Bad eraseblock 4629 at 0x0000242a0000 [ 6.519545] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.540995] Bad eraseblock 8086 at 0x00003f2c0000 [ 6.545776] ata1.00: ATA-8: ST2000DM001-1CH164, CC26, max UDMA/133 [ 6.558318] 6 fixed-partitions partitions found on MTD device orion_nand [ 6.565077] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 6.572050] Creating 6 MTD partitions on "orion_nand": [ 6.577335] 0x000000000000-0x000000080000 : "uboot" [ 6.583012] 0x0000000a0000-0x0000000c0000 : "env" [ 6.588430] 0x0000000c0000-0x0000000e0000 : "env2" [ 6.593955] 0x000000100000-0x000000400000 : "uImage" [ 6.599739] 0x000000400000-0x000000800000 : "initrd" [ 6.605568] 0x000000800000-0x000040000000 : "boot" [ 6.617264] libphy: Fixed MDIO Bus: probed [ 6.621979] libphy: orion_mdio_bus: probed [ 6.630262] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 6.730374] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:15:62:7f [ 6.739211] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.745816] ehci-pci: EHCI PCI platform driver [ 6.750418] ehci-orion: EHCI orion driver [ 6.754723] orion-ehci f1050000.ehci: EHCI Host Controller [ 6.760277] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 6.768153] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 6.799541] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.805796] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 6.814192] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.821582] usb usb1: Product: EHCI Host Controller [ 6.826477] usb usb1: Manufacturer: Linux 4.18.4-kirkwood-tld-1 ehci_hcd [ 6.833227] usb usb1: SerialNumber: f1050000.ehci [ 6.838390] hub 1-0:1.0: USB hub found [ 6.842228] hub 1-0:1.0: 1 port detected [ 6.846664] usbcore: registered new interface driver usb-storage [ 6.853059] mousedev: PS/2 mouse device common for all mice [ 6.859173] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 6.866261] i2c /dev entries driver [ 6.871652] hidraw: raw HID events driver (C) Jiri Kosina [ 6.877341] drop_monitor: Initializing network drop monitor service [ 6.883985] NET: Registered protocol family 17 [ 6.888649] Key type dns_resolver registered [ 6.893562] registered taskstats version 1 [ 6.897674] Loading compiled-in X.509 certificates [ 6.902558] zswap: loaded using pool lzo/zbud [ 6.924177] Key type big_key registered [ 6.935731] Key type encrypted registered [ 6.941347] rtc-mv f1010300.rtc: setting system clock to 2018-10-21 03:16:40 UTC (1540091800) [ 7.209543] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 7.736656] usb 1-1: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.41 [ 7.744893] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.752089] usb 1-1: Product: Mass Storage Device [ 7.756814] usb 1-1: Manufacturer: JetFlash [ 7.761033] usb 1-1: SerialNumber: SOHTINDY [ 7.765764] usb-storage 1-1:1.0: USB Mass Storage device detected [ 7.772283] usb-storage 1-1:1.0: Quirks match for vid 058f pid 6387: 400 [ 7.779099] scsi host2: usb-storage 1-1:1.0 [ 8.823239] scsi 2:0:0:0: Direct-Access JetFlash TS4GJFV30 8.07 PQ: 0 ANSI: 2 [ 8.833563] sd 2:0:0:0: [sda] 7987198 512-byte logical blocks: (4.09 GB/3.81 GiB) [ 8.841554] sd 2:0:0:0: [sda] Write Protect is off [ 8.846373] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 8.846803] sd 2:0:0:0: [sda] No Caching mode page found [ 8.852261] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 8.865048] sda: sda1 sda2 [ 8.870183] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 9.604094] ata1.00: configured for UDMA/133 [ 9.618753] scsi 0:0:0:0: Direct-Access ATA ST2000DM001-1CH1 CC26 PQ: 0 ANSI: 5 [ 9.627638] sd 0:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 9.635779] sd 0:0:0:0: [sdb] 4096-byte physical blocks [ 9.641144] sd 0:0:0:0: [sdb] Write Protect is off [ 9.645962] sd 0:0:0:0: [sdb] Mode Sense: 00 3a 00 00 [ 9.646059] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 9.704493] sdb: sdb1 sdb2 [ 9.708493] sd 0:0:0:0: [sdb] Attached SCSI disk [ 10.139648] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 10.150437] ata2.00: ATA-8: ST1000DM003-9YN162, CC9D, max UDMA/133 [ 10.156647] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 10.170166] ata2.00: configured for UDMA/133 [ 10.184832] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1 CC9D PQ: 0 ANSI: 5 [ 10.193711] sd 1:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) [ 10.201702] sd 1:0:0:0: [sdc] 4096-byte physical blocks [ 10.207018] sd 1:0:0:0: [sdc] Write Protect is off [ 10.211862] sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00 [ 10.211963] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 10.503502] sdc: sdc1 sdc2 [ 10.507503] sd 1:0:0:0: [sdc] Attached SCSI disk [ 10.515131] Freeing unused kernel memory: 1024K [ 10.520115] Checked W+X mappings: passed, no W+X pages found [ 10.606759] random: udevadm: uninitialized urandom read (16 bytes read) [ 10.615740] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 10.623560] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 10.941499] usbcore: registered new interface driver uas [ 11.427154] md1: detected capacity change from 0 to 2957586194432 [ 11.715602] device-mapper: uevent: version 1.0.3 [ 11.722251] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com [ 12.140366] raid6: int32x1 gen() 115 MB/s [ 12.309732] raid6: int32x1 xor() 80 MB/s [ 12.479803] raid6: int32x2 gen() 146 MB/s [ 12.649727] raid6: int32x2 xor() 115 MB/s [ 12.819697] raid6: int32x4 gen() 157 MB/s [ 12.989670] raid6: int32x4 xor() 107 MB/s [ 13.159773] raid6: int32x8 gen() 164 MB/s [ 13.329567] raid6: int32x8 xor() 112 MB/s [ 13.333854] raid6: using algorithm int32x8 gen() 164 MB/s [ 13.339277] raid6: .... xor() 112 MB/s, rmw enabled [ 13.344185] raid6: using intx1 recovery algorithm [ 13.353134] xor: measuring software checksum speed [ 13.449761] arm4regs : 1446.400 MB/sec [ 13.549579] 8regs : 868.000 MB/sec [ 13.649542] 32regs : 1262.400 MB/sec [ 13.653740] xor: using function: arm4regs (1446.400 MB/sec) [ 13.666746] async_tx: api initialized (async) [ 13.933380] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null) [ 15.599125] random: crng init done [ 15.602578] random: 7 urandom warning(s) missed due to ratelimiting [ 16.037443] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 16.279923] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 16.352548] adt7475 0-002e: ADT7473 device, revision 0 [ 16.383083] adt7475 0-002e: Optional features: fan4 pwm2 [ 16.410506] marvell-cesa f1030000.crypto: CESA device successfully registered [ 16.418054] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 16.440112] sd 0:0:0:0: Attached scsi generic sg1 type 0 [ 16.478265] sd 1:0:0:0: Attached scsi generic sg2 type 0 [ 16.493805] orion_wdt: Initial timeout 21 sec [ 18.289664] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro [ 19.065999] Adding 1048572k swap on /mnt/swapfile. Priority:-2 extents:7 across:1499136k FS [ 19.978244] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: data=ordered,commit=120 [ 21.571788] NET: Registered protocol family 10 [ 21.578374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 21.584463] Segment Routing with IPv6 [ 23.783867] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 23.793782] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 31.431110] NFSD: starting 90-second grace period (net f000001c)
fw_printenv Cannot read bad block mark: Invalid argument
cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 21, 2018 01:32AM |
Registered: 6 years ago Posts: 125 |
# MTD device name Device offset Env. size Flash sector size $ /dev/mtd1 0x0000 0x4000 0x4000 /dev/mtd2 0x0000 0x4000 0x4000
/etc# fw_printenv Warning: Bad CRC, using default environment bootargs= bootcmd= bootdelay=2 baudrate=115200 arch=sandbox cpu=sandbox board=sandbox board_name=sandbox stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipaddr=1.2.3.4 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi boot_net_pci_enum=pci enum boot_net_usb_start=usb start usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi boot_prefixes=/ /boot/ boot_scripts=boot.scr.uimg boot.scr boot_script_dhcp=boot.scr.uimg boot_targets=host1 host0 boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done bootcmd_host1=setenv devnum 1; run host_boot bootcmd_host0=setenv devnum 0; run host_boot distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done bootm_size=0x10000000 kernel_addr_r=0x1000000 fdt_addr_r=0xc00000 ramdisk_addr_r=0x2000000 scriptaddr=0x1000 pxefile_addr_r=0x2000
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 21, 2018 01:44AM |
Registered: 6 years ago Posts: 125 |
# MTD device name Device offset Env. size Flash sector size $ /dev/mtd1 0x0000 0x20000 0x20000 /dev/mtd2 0x0000 0x20000 0x20000
fw_printenv baudrate=115200 loads_echo=0 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes MALLOC_len=1 ethprime=egiga0 bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; lcd0_enable=0 lcd0_params=640x480-16@60 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 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes ethact=egiga0 kernel_size=0x300000 loadzimage=nand read.e 0x40000 $(kernel_start) $(kernel_size) loadinitrd=nand read.e 0x900000 $(initrd_start) $(initrd_size) console=console=ttyS0,115200 bootargs_root=root=/dev/ram0 initrdimage=mfginitrd ipaddr=192.168.1.2 mfgmodel=ix2 preroot_ver=0.0.2 uboot_ver=0.0.8 serial_number=5563Y01011G33400015J0H1 ethaddr=00:D0:B8:15:62:7F serialNo=V7AD360054 modelname=70A69003AP fw_ver=4.0.4.14600d serialno=1,01qImmfct4zUs3yki67JMy2LfVN603V+W1CY2gpTd1BPOPOB+KEBaLjxL2hhBGH2Rz,V7AD360054, runintime=10800 ftpserver=192.168.43.4 testfile=100M mfgtest_state=system_tested_ok pre_path=IX2/1.0.8/download_runin.sh pre_path_conf=IX2/1.0.8/download_runin.conf pre_serverip=192.168.32.4 pre_user=ixxrunin pre_passwd=123 pre_dirzi=IX2/1.0.8 serverip=192.168.32.4 initrd_size=0x400000 arcNumber=1682 load_uImage=ext2load usb 0:1 0x800000 /uImage bootcmd=run=loadzimage mk_mtdparts=setenv=mtdparts mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),$(kernel_size)@$(kernel_start)(uImage),$(initrd_size)@$(initrd_start)(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) rootdelay=10 usb_root=LABEL=rootfs bootcmd=run usb_boot rootfstype=ext3 load_initrd=ext2load usb 0:1 0x2100000 /boot/uInitrd load_uimage=ext2load usb 0:1 0x800000 /boot/uImage usb_boot=usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000 stdin=serial stdout=serial stderr=serial mainlineLinux=yes 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 kernel_start=0x100000 initrd_start=0x400000 bootdelay=3 disaMvPnp=no enaAutoRecovery=yes pcieTune=no pcieTune1=no bootargs=console=ttyS0,115200 root=LABEL=sataroot :::DB88FXX81:eth0:none mtdparts=orion_nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000 (env2),0x300000@0x100000 (uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 21, 2018 04:09PM |
Admin Registered: 13 years ago Posts: 18,976 |
mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
[ 6.572050] Creating 6 MTD partitions on "orion_nand": [ 6.577335] 0x000000000000-0x000000080000 : "uboot" [ 6.583012] 0x0000000a0000-0x0000000c0000 : "env" [ 6.588430] 0x0000000c0000-0x0000000e0000 : "env2" [ 6.593955] 0x000000100000-0x000000400000 : "uImage" [ 6.599739] 0x000000400000-0x000000800000 : "initrd" [ 6.605568] 0x000000800000-0x000040000000 : "boot"
> cat /proc/mtd > dev: size erasesize name > mtd0: 00080000 00020000 "uboot" > mtd1: 00020000 00020000 "env" > mtd2: 00020000 00020000 "env2" > mtd3: 00300000 00020000 "uImage" > mtd4: 00400000 00020000 "initrd" > mtd5: 3f800000 00020000 "boot"
cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size $ /dev/mtd1 0x0000 0x20000 0x20000
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 21, 2018 05:13PM |
Registered: 6 years ago Posts: 125 |
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 21, 2018 05:36PM |
Admin Registered: 13 years ago Posts: 18,976 |
> cat /proc/mtd > dev: size erasesize name > mtd0: 00080000 00020000 "uboot" > mtd1: 00020000 00020000 "env" > mtd2: 00020000 00020000 "env2" > mtd3: 00300000 00020000 "uImage" > mtd4: 00400000 00020000 "initrd" > mtd5: 3f800000 00020000 "boot"But you don't have to follow this layout, if you don't care about stock OS. You can repartition it by using a different mtdparts envs. Suppose you are willing to wipe out the current stock in NAND mtd3, mtd4, and mtd5. Then use this definition:
mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x800000@0x100000(uImage),0x1000000@0x800000(initrd),-(data)
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 21, 2018 08:03PM |
Registered: 6 years ago Posts: 125 |
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 21, 2018 08:38PM |
Admin Registered: 13 years ago Posts: 18,976 |
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 21, 2018 09:05PM |
Registered: 6 years ago Posts: 125 |
setenv bootcmd 'ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4000; bootm 0x40000 0x2100000'
cd /boot update-initramfs -uv cp -a zImage-4.11.3-kirkwood-tld-2 zImage.fdt cat dts/kirkwood-lenovo-ix2-ng.dtb >> zImage.fdt mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initrd.img-4.11.3-kirkwood-tld-2 -d initrd.img-4.11.3-kirkwood-tld-2 uInitrd mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.11.3-kirkwood-tld-2 -d zImage.fdt uImage dd if=uImage of=/dev/sda bs=1MiB seek=10 dd if=uInitrd of=/dev/sda bs=1MiB seek=20
Model: ATA WDC WD20EFRX-68A (scsi) Disk /dev/sda: 1907729MiB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 128MiB 4224MiB 4096MiB linux-swap(v1) swap 2 4224MiB 45184MiB 40960MiB ext4 rootfs boot, esp 3 45184MiB 1907729MiB 1862545MiB btrfs
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 22, 2018 12:50AM |
Admin Registered: 13 years ago Posts: 18,976 |
Quote
Edit: Found it, Eine did this on a Iomega EZ;
Booting off GPT, by dd'ing direct to blank sectors
Quote
> So if I shrink my rootfs 'up' by 128MiB, then use
> Eine's dd example command I should be able to get
> uboot to load from the sectors. What do you think?
dd if=uImage of=/dev/sda bs=1MiB seek=10 dd if=uInitrd of=/dev/sda bs=1MiB seek=20
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 22, 2018 12:55AM |
Admin Registered: 13 years ago Posts: 18,976 |
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 22, 2018 01:03AM |
Admin Registered: 13 years ago Posts: 18,976 |
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 22, 2018 01:15AM |
Registered: 6 years ago Posts: 125 |
GNU Parted 3.2 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA ST2000DM001-1CH1 (scsi) Disk /dev/sda: 2000GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 33.6MB 21.5GB 21.5GB ext4 primary 2 21.5GB 2000GB 1979GB primary msftdata
Model: ATA ST1000DM003-9YN1 (scsi) Disk /dev/sdc: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 128MB 21.5GB 21.4GB 1TB 2 21.5GB 1000GB 979GB primary msftdata
/kernels# dd if=uImage of=/dev/sdb bs=1MiB seek=10 3+1 records in 3+1 records out 4171272 bytes (4.2 MB, 4.0 MiB) copied, 3.1455 s, 1.3 MB/s /kernels# dd if=uInitrd of=/dev/sdb bs=1MiB seek=20 9+1 records in 9+1 records out 9762728 bytes (9.8 MB, 9.3 MiB) copied, 0.196305 s, 49.7 MB/s
Marvell>> ide info IDE device 0: Model: ST2000DM001-1CH164 Firm: CC26 Ser#: Z2F0PEJZ Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512) IDE device 1: Model: ST1000DM003-9YN162 Firm: CC9D Ser#: Z1D0F6TF Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) Marvell>> ide part Partition Map for IDE device 0 -- Partition Type: DOS Partition Start Sector Num Sectors Type 1 1 -387938129 ee Partition Map for IDE device 1 -- Partition Type: DOS Partition Start Sector Num Sectors Type 1 1 1953525167 ee Marvell>> ide device 1 IDE device 1: Model: ST1000DM003-9YN162 Firm: CC9D Ser#: Z1D0F6TF Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) ... is now current device Marvell>> ide read 0x40000 0x5000 0x2000 IDE read: device 1 block # 20480, count 8192 ... 8192 blocks read: OK Marvell>> ide read 0x2100000 0xA000 0x4000 IDE read: device 1 block # 40960, count 16384 ... 16384 blocks read: OK Marvell>> bootm 0x40000 0x2100000 ## Booting image at 00040000 ... Image Name: Linux-4.18.4-kirkwood-tld-1 Created: 2018-10-21 2:09:48 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4171208 Bytes = 4 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.18.4-kirkwood-tld-1 Created: 2018-10-20 19:08:21 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9762664 Bytes = 9.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... Bad Data CRC
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 22, 2018 02:19AM |
Admin Registered: 13 years ago Posts: 18,976 |
Marvell>> ide read 0x40000 0x5000 0x2000 IDE read: device 1 block # 20480, count 8192 ... 8192 blocks read: OK Marvell>> ide read 0x2100000 0xA000 0x4000 IDE read: device 1 block # 40960, count 16384 ... 16384 blocks read: OK
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 22, 2018 02:30AM |
Registered: 6 years ago Posts: 125 |
/kernels# dd if=uInitrd of=/dev/sdc bs=1MiB seek=20 9+1 records in 9+1 records out 9762728 bytes (9.8 MB, 9.3 MiB) copied, 0.196305 s, 49.7 MB/s
U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz SysClock = 533Mhz , TClock = 200Mhz DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7 DRAM CS[0] base 0x00000000 size 256MB DRAM Total size 256MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:1024 MB Found ADT7473, program PWM1 ... OK Flash: 0 kB Marvell Serial ATA Adapter Integrated Sata device found [0 0 0]: Enable DMA mode (6) Device 0 @ 0 0: Model: ST2000DM001-1CH164 Firm: CC26 Ser#: Z2F0PEJZ Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512) [0 1 0]: Enable DMA mode (6) Device 1 @ 0 1: Model: ST1000DM003-9YN162 Firm: CC9D Ser#: Z1D0F6TF Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) CPU : Marvell Feroceon (Rev 1) Found kernel at 0x100000 Found initrd at 0x400000 Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. PEX 1: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> ide device 1;ide read 0x2100000 0xA000 0x4F00 IDE device 1: Model: ST1000DM003-9YN162 Firm: CC9D Ser#: Z1D0F6TF Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) ... is now current device IDE read: device 1 block # 40960, count 20224 ... 20224 blocks read: OK Marvell>> imi 0x2100000 ## Checking Image at 02100000 ... Image Name: initramfs-4.18.4-kirkwood-tld-1 Created: 2018-10-20 19:08:21 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9762664 Bytes = 9.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Marvell>> setenv bootcmd 'ide device 1; ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4F00; bootm 0x40000 0x2100000' Marvell>> boot IDE device 1: Model: ST1000DM003-9YN162 Firm: CC9D Ser#: Z1D0F6TF Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) ... is now current device IDE read: device 1 block # 20480, count 8192 ... 8192 blocks read: OK IDE read: device 1 block # 40960, count 20224 ... 20224 blocks read: OK ## Booting image at 00040000 ... Image Name: Linux-4.18.4-kirkwood-tld-1 Created: 2018-10-21 2:09:48 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4171208 Bytes = 4 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.18.4-kirkwood-tld-1 Created: 2018-10-20 19:08:21 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9762664 Bytes = 9.3 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.18.4-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018 [ 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: Lenovo IX2-dl [ 0.000000] Memory policy: Data cache writeback [ 0.000000] random: get_random_bytes called from start_kernel+0x78/0x4e8 with crng_init=0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=sataroot :::DB88FXX81:eth0:none mtdparts=orion_nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),0x40000000@0x0(flash) [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Memory: 236868K/262144K available (8192K kernel code, 799K rwdata, 2148K rodata, 1024K init, 279K bss, 25276K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (9184 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 800 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 280 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000035] Switching to timer-based delay loop, resolution 5ns [ 0.000480] Console: colour dummy device 80x30 [ 0.000512] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000531] pid_max: default: 32768 minimum: 301 [ 0.000786] Security Framework initialized [ 0.000906] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000924] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001754] CPU: Testing write buffer coherency: ok [ 0.002923] Setting up static identity map for 0x100000 - 0x100058 [ 0.003137] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.003334] Hierarchical SRCU implementation. [ 0.005934] devtmpfs: initialized [ 0.009947] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.009971] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.010278] prandom: seed boundary self test passed [ 0.013432] prandom: 100 self tests passed [ 0.013442] pinctrl core: initialized pinctrl subsystem [ 0.014459] NET: Registered protocol family 16 [ 0.014838] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.015397] audit: initializing netlink subsys (disabled) [ 0.015656] audit: type=2000 audit(0.010:1): state=initialized audit_enabled=0 res=1 [ 0.016597] cpuidle: using governor ladder [ 0.016675] cpuidle: using governor menu [ 0.017067] Feroceon L2: Enabling L2 [ 0.017102] Feroceon L2: Cache support initialised. [ 0.017378] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.021423] No ATAGs? [ 0.027895] vgaarb: loaded [ 0.028178] SCSI subsystem initialized [ 0.028521] usbcore: registered new interface driver usbfs [ 0.028567] usbcore: registered new interface driver hub [ 0.028610] usbcore: registered new device driver usb [ 0.028722] pps_core: LinuxPPS API ver. 1 registered [ 0.028730] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.028750] PTP clock support registered [ 0.029535] clocksource: Switched to clocksource orion_clocksource [ 0.112824] VFS: Disk quotas dquot_6.6.0 [ 0.112898] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.119959] NET: Registered protocol family 2 [ 0.120559] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes) [ 0.120586] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [ 0.120617] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.120646] TCP: Hash tables configured (established 2048 bind 2048) [ 0.120715] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.120738] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.120890] NET: Registered protocol family 1 [ 0.121381] RPC: Registered named UNIX socket transport module. [ 0.121391] RPC: Registered udp transport module. [ 0.121397] RPC: Registered tcp transport module. [ 0.121403] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.121598] Unpacking initramfs... [ 0.764503] Freeing initrd memory: 9536K [ 0.764648] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.765570] Initialise system trusted keyrings [ 0.765614] Key type blacklist registered [ 0.765804] workingset: timestamp_bits=30 max_order=16 bucket_order=0 [ 0.765876] zbud: loaded [ 0.766641] NFS: Registering the id_resolver key type [ 0.766663] Key type id_resolver registered [ 0.766670] Key type id_legacy registered [ 0.766686] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.766694] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.766927] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.767088] fuse init (API version 7.27) [ 0.767383] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.767527] orangefs_init: module version upstream loaded [ 0.767536] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled [ 2.559539] random: fast init done [ 5.212616] Key type asymmetric registered [ 5.212629] Asymmetric key parser 'x509' registered [ 5.212694] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 5.212705] io scheduler noop registered [ 5.212713] io scheduler deadline registered [ 5.212793] io scheduler cfq registered (default) [ 5.213824] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 5.215329] mv_xor f1060800.xor: Marvell shared XOR driver [ 5.270155] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 5.270358] mv_xor f1060900.xor: Marvell shared XOR driver [ 5.330149] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 5.330540] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 5.331493] console [ttyS0] disabled [ 5.331551] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 26, base_baud = 12500000) is a 16550A [ 5.979740] console [ttyS0] enabled [ 5.988563] loop: module loaded [ 5.992206] sata_mv f1080000.sata: slots 32 ports 2 [ 5.999091] scsi host0: sata_mv [ 6.002640] scsi host1: sata_mv [ 6.005931] ata1: SATA max UDMA/133 irq 33 [ 6.010086] ata2: SATA max UDMA/133 irq 33 [ 6.014824] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd3 [ 6.021295] nand: Samsung NAND 1GiB 3,3V 8-bit [ 6.025760] nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 6.033482] Scanning device for bad blocks [ 6.040862] Bad eraseblock 54 at 0x0000006c0000 [ 6.184376] Bad eraseblock 2380 at 0x000012980000 [ 6.323594] Bad eraseblock 4629 at 0x0000242a0000 [ 6.519561] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.541486] Bad eraseblock 8086 at 0x00003f2c0000 [ 6.546269] ata1.00: ATA-8: ST2000DM001-1CH164, CC26, max UDMA/133 [ 6.558813] 6 fixed-partitions partitions found on MTD device orion_nand [ 6.565570] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 6.572543] Creating 6 MTD partitions on "orion_nand": [ 6.577828] 0x000000000000-0x000000080000 : "uboot" [ 6.583507] 0x0000000a0000-0x0000000c0000 : "env" [ 6.588923] 0x0000000c0000-0x0000000e0000 : "env2" [ 6.594445] 0x000000100000-0x000000400000 : "uImage" [ 6.600224] 0x000000400000-0x000000800000 : "initrd" [ 6.606050] 0x000000800000-0x000040000000 : "boot" [ 6.617746] libphy: Fixed MDIO Bus: probed [ 6.622466] libphy: orion_mdio_bus: probed [ 6.630801] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 6.730403] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:15:62:7f [ 6.739239] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.745845] ehci-pci: EHCI PCI platform driver [ 6.750450] ehci-orion: EHCI orion driver [ 6.754757] orion-ehci f1050000.ehci: EHCI Host Controller [ 6.760315] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 6.768140] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 6.784100] ata1.00: configured for UDMA/133 [ 6.798814] scsi 0:0:0:0: Direct-Access ATA ST2000DM001-1CH1 CC26 PQ: 0 ANSI: 5 [ 6.806982] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.813770] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 6.822125] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18 [ 6.830490] sd 0:0:0:0: [sda] 4096-byte physical blocks [ 6.835816] sd 0:0:0:0: [sda] Write Protect is off [ 6.840674] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.847925] usb usb1: Product: EHCI Host Controller [ 6.852963] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.862077] usb usb1: Manufacturer: Linux 4.18.4-kirkwood-tld-1 ehci_hcd [ 6.868808] usb usb1: SerialNumber: f1050000.ehci [ 6.874963] hub 1-0:1.0: USB hub found [ 6.878764] hub 1-0:1.0: 1 port detected [ 6.883272] usbcore: registered new interface driver usb-storage [ 6.889611] mousedev: PS/2 mouse device common for all mice [ 6.895623] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 6.902899] i2c /dev entries driver [ 6.908810] hidraw: raw HID events driver (C) Jiri Kosina [ 6.914570] drop_monitor: Initializing network drop monitor service [ 6.921114] NET: Registered protocol family 17 [ 6.925650] Key type dns_resolver registered [ 6.930736] registered taskstats version 1 [ 6.934852] Loading compiled-in X.509 certificates [ 6.939846] zswap: loaded using pool lzo/zbud [ 6.945008] sda: sda1 sda2 [ 6.949347] sd 0:0:0:0: [sda] Attached SCSI disk [ 6.970660] Key type big_key registered [ 6.982229] Key type encrypted registered [ 6.987650] rtc-mv f1010300.rtc: setting system clock to 2018-10-22 07:25:41 UTC (1540193141) [ 7.249563] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 7.329573] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 7.340363] ata2.00: ATA-8: ST1000DM003-9YN162, CC9D, max UDMA/133 [ 7.346570] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 7.384057] ata2.00: configured for UDMA/133 [ 7.398743] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1 CC9D PQ: 0 ANSI: 5 [ 7.407634] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) [ 7.415618] sd 1:0:0:0: [sdb] 4096-byte physical blocks [ 7.420956] sd 1:0:0:0: [sdb] Write Protect is off [ 7.425872] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 7.514055] sdb: sdb1 sdb2 [ 7.518062] sd 1:0:0:0: [sdb] Attached SCSI disk [ 7.525892] Freeing unused kernel memory: 1024K [ 7.530879] Checked W+X mappings: passed, no W+X pages found Loading, please wait... starting version 232 [ 7.618044] random: udevadm: uninitialized urandom read (16 bytes read) [ 7.626989] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 7.634834] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 7.777917] usb 1-1: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.41 [ 7.809718] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.816892] usb 1-1: Product: Mass Storage Device [ 7.834851] usb 1-1: Manufacturer: JetFlash [ 7.839058] usb 1-1: SerialNumber: SOHTINDY [ 7.860297] usb-storage 1-1:1.0: USB Mass Storage device detected [ 7.873420] usb-storage 1-1:1.0: Quirks match for vid 058f pid 6387: 400 [ 7.887735] scsi host2: usb-storage 1-1:1.0 [ 8.369300] md1: detected capacity change from 0 to 2957586194432 [ 8.427048] usbcore: registered new interface driver uas [ 8.606644] device-mapper: uevent: version 1.0.3 [ 8.613370] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com Begin: Loading essential drivers ... [ 8.990481] raid6: int32x1 gen() 115 MB/s [ 9.159867] raid6: int32x1 xor() 80 MB/s [ 9.164276] scsi 2:0:0:0: Direct-Access JetFlash TS4GJFV30 8.07 PQ: 0 ANSI: 2 [ 9.345446] sd 2:0:0:0: [sdc] 7987198 512-byte logical blocks: (4.09 GB/3.81 GiB) [ 9.359698] sd 2:0:0:0: [sdc] Write Protect is off [ 9.369410] sd 2:0:0:0: [sdc] No Caching mode page found [ 9.376545] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 9.387094] raid6: int32x2 gen() 146 MB/s [ 9.559636] raid6: int32x2 xor() 115 MB/s [ 9.729907] raid6: int32x4 gen() 157 MB/s [ 9.899790] raid6: int32x4 xor() 107 MB/s [ 10.069972] raid6: int32x8 gen() 164 MB/s [ 10.239786] raid6: int32x8 xor() 112 MB/s [ 10.244184] raid6: using algorithm int32x8 gen() 164 MB/s [ 10.249665] raid6: .... xor() 112 MB/s, rmw enabled [ 10.254612] raid6: using intx1 recovery algorithm [ 10.264322] xor: measuring software checksum speed [ 10.269684] sdc: sdc1 sdc2 [ 10.275566] sd 2:0:0:0: [sdc] Attached SCSI removable disk [ 10.379672] arm4regs : 1446.400 MB/sec [ 10.491351] 8regs : 868.000 MB/sec [ 10.590253] 32regs : 1260.400 MB/sec [ 10.594519] xor: using function: arm4regs (1446.400 MB/sec) [ 10.610937] async_tx: api initialized (async) done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Will now check root file system ... fsck from util-linux 2.29.2 [/sbin/fsck.ext4 (1) -- /dev/sda1] fsck.ext4 -a -C0 /dev/sda1 sataroot: clean, 49006/1310720 files, 960739/5242880 blocks done. [ 11.113847] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ ok [ 13.240422] input: gpio-keys as /devices/platform/gpio-keys/input/input0 done. [....] Waiting for /dev to be fully populated...[ 13.340883] random: crng init done [ 13.344306] random: 7 urandom warning(s) missed due to ratelimiting [ 13.523531] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 13.589039] adt7475 0-002e: ADT7473 device, revision 0 [ 13.595927] orion_wdt: Initial timeout 21 sec [ 13.617709] adt7475 0-002e: Optional features: fan4 pwm2 [ 13.643581] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 13.680433] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 13.718124] marvell-cesa f1030000.crypto: CESA device successfully registered [ 13.737822] sd 2:0:0:0: Attached scsi generic sg2 type 0 done. [....] Setting up LVM Volume Groups... WARNING: Failed to connect to lvmetad. Falling back to device scanning. done. [ 15.729782] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro [....] Activating lvm and md swap...[ 16.500268] Adding 1048572k swap on /mnt/swapfile. Priority:-2 extents:7 across:1499136k FS done. [....] Checking file systems...fsck from util-linux 2.29.2 /dev/mapper/793957d3_vg-lv7f68d3d7: clean, 11975/180518912 files, 518544111/722066432 blocks done. [ ok ] Cleaning up temporary files... /tmp. [ 17.427428] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: data=ordered,commit=120 [ ok ] Mounting local filesystems...done. [ ok ] Activating swapfile swap...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ 19.041703] NET: Registered protocol family 10 [ 19.048281] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 19.054362] Segment Routing with IPv6 [....] Configuring network interfaces...[ 21.452614] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 21.462530] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ 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... 1291 (syslogd) . ok [ ok ] Starting LVM2 metadata daemon: lvmetad. [ ok ] Starting system message bus: dbus. [ ok ] Starting LVM2 poll daemon: lvmpolld. [ ok ] Starting MD monitoring service: mdadm --monitor. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [ ok ] Starting NFS common utilities: statd idmapd. [ 27.608276] NFSD: starting 90-second grace period (net f000001c) [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1290 (klogd) . ok [ ok ] Exporting directories for NFS kernel daemon.... [ ok ] Starting NFS kernel daemon: nfsd mountd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [ ok ] Starting NTP server: ntpd. /dev/sda: setting Advanced Power Management level to 0x64 (100) setting standby to 200 (16 minutes + 40 seconds) APM_level = 100 /dev/sdc: setting Advanced Power Management level to 0x64 (100) SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 setting standby to 200 (16 minutes + 40 seconds) SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 0a 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 APM_level = not supported Debian GNU/Linux 9
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash October 22, 2018 04:02AM |
Admin Registered: 13 years ago Posts: 18,976 |