Debian/OpenWrt - built-in NAND flash - Promwad-ThinClient/Depo Sky A60/AK-Systems AK1100 and AK-systems IP-Plug December 22, 2024 10:40AM |
Registered: 2 months ago Posts: 32 |
me@pc:~/tmpdir$ wget https://downloads.openwrt.org/releases/23.05.5/targets/kirkwood/generic/openwrt-23.05.5-kirkwood-generic-cisco_on100-squashfs-sysupgrade.bin me@pc:~/tmpdir$ tar xf openwrt-23.05.5-kirkwood-generic-cisco_on100-squashfs-sysupgrade.bin me@pc:~/tmpdir$ cd sysupgrade-cisco_on100/ #find out where the uImage header and FTD are in order to delete me@pc:~/tmpdir/sysupgrade-cisco_on100$ binwalk kernel DECIMAL HEXADECIMAL DESCRIPTION -------------------------------------------------------------------------------- 0 0x0 uImage header, header size: 64 bytes, header CRC: 0xF503333B, created: 2024-09-23 12:34:46, image size: 2791120 bytes, Data Address: 0x8000, Entry Point: 0x8000, data CRC: 0x62DCBA0C, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "ARM OpenWrt Linux-5.15.167" 64 0x40 Linux kernel ARM boot executable zImage (little-endian) 30160 0x75D0 xz compressed data 30652 0x77BC xz compressed data 2779640 0x2A69F8 Flattened device tree, size: 11544 bytes, version: 17 me@pc:~/tmpdir/sysupgrade-cisco_on100$ dd if=kernel of=zImage-baddtb bs=64 skip=1 me@pc:~/tmpdir/sysupgrade-cisco_on100$ binwalk zImage-baddtb DECIMAL HEXADECIMAL DESCRIPTION -------------------------------------------------------------------------------- 0 0x0 Linux kernel ARM boot executable zImage (little-endian) 30096 0x7590 xz compressed data 30588 0x777C xz compressed data 2779576 0x2A69B8 Flattened device tree, size: 11544 bytes, version: 17 me@pc:~/tmpdir/sysupgrade-cisco_on100$ dd if=zImage-baddtb of=zImage bs=2779576 count=1 #make uImage with our FDT me@pc:~/tmpdir/sysupgrade-cisco_on100$ cat kirkwood-promwad-thin-client.dtb >> zImage me@pc:~/tmpdir/sysupgrade-cisco_on100$ mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n Linux-5.15.167-1 -d zImage uImage5.15.167-1 #we need to be root when creating a rootfs so that there are no permissions issues me@pc:~/tmpdir/sysupgrade-cisco_on100$ sudo -s root@pc:/home/me/tmpdir/sysupgrade-cisco_on100# unsquashfs root #enable ttyS0 console for login and shell root@pc:/home/me/tmpdir/sysupgrade-cisco_on100# echo 'ttyS0::askfirst:/usr/libexec/login.sh' >> squashfs-root/etc/inittab #set general ubi parametrs root@pc:/home/me/tmpdir/sysupgrade-cisco_on100# echo '[ubifs]' > ubinize.cfg; echo 'mode=ubi' >> ubinize.cfg; echo 'image=ow.tmp' >> ubinize.cfg; echo 'vol_id=0' >> ubinize.cfg; echo 'vol_size=900MiB' >> ubinize.cfg; echo 'vol_type=dynamic' >> ubinize.cfg; echo 'vol_name=rootfs' >> ubinize.cfg ;echo 'vol_flags=autoresize' >> ubinize.cfg #set nand parametrs #erase block, page, and subpage parameters are taken from the nand flash datasheet #logical UBI block parameters calculated according to the formula, and matches the value in the stock firmware #the count of logical UBIFS blocks is calculated for the UBIFS size of 900M root@pc:/home/me/tmpdir/sysupgrade-cisco_on100# mkfs.ubifs -q -r squashfs-root/ -m 2048 -e 129024 -c 8191 -o ow.tmp root@pc:/home/me/tmpdir/sysupgrade-cisco_on100# ubinize -o ow23.05.5.ubi -m 2048 -p 128KiB -s 512 ubinize.cfg root@pc:/home/me/tmpdir/sysupgrade-cisco_on100# chown me.me ow23.05.5.ubi uImage5.15.167-1
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) December 22, 2024 05:21PM |
Admin Registered: 14 years ago Posts: 19,288 |
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) December 23, 2024 01:09PM |
Registered: 2 months ago Posts: 36 |
[ 1.582382] ubi0: attaching mtd2 [ 1.585798] ecc_sw_hamming_correct: uncorrectable ECC error [ 1.591403] ubi0 warning: 0xc04c5004: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry [ 1.602995] ecc_sw_hamming_correct: uncorrectable ECC error [ 1.608598] ubi0 warning: 0xc04c5004: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry [ 1.619790] ecc_sw_hamming_correct: uncorrectable ECC error [ 1.625395] ubi0 warning: 0xc04c5004: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry [ 1.636592] ecc_sw_hamming_correct: uncorrectable ECC error [ 1.642197] ubi0 error: 0xc04c503c: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
Marvell>> nand bad Device 0 bad blocks: 003a0000 00600000 067e0000 08f00000 0d0c0000 14200000 33e00000 37860000 39cc0000
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) December 24, 2024 04:32AM |
Registered: 2 months ago Posts: 32 |
setenv serverip 192.168.10.1; setenv ipaddr 192.168.10.10; nand erase.chip; mw.b 0x06400000 00 0x100000 tftp 0x06400000 thinclient-u-boot.kwb nand write 0x06400000 0x0 0x100000 tftp 0x06400000 uImage5.15.167-1 nand write.e 0x06400000 0xA00000 0xA00000 tftp 0x06400000 ow23.05.5.ubi nand write.e 0x06400000 0x1400000 0xA00000 reset
set x_bootcmd_kernel_rcvr; set x_bootargs_root_rcvr; set bootcmd_rcvr; setenv serverip 192.168.10.1; setenv ipaddr 192.168.10.10; set bootcmd 'setenv bootargs ${x_bootargs} ${x_bootargs_root}; run x_bootcmd_kernel; bootm 0x6400000;' set x_bootargs console=ttyS0,115200 loglevel=9 mtdparts=orion_nand:1M(U-Boot),9M(badblocks),10M(uImage),-(ubipart) earlyprintk=serial set x_bootargs_root ubi.mtd=3 ubi.block=0,rootfs root=/dev/ubiblock0_0 set x_bootcmd_kernel nand read.e 0x06400000 0xA00000 0xA00000 saveenv; reset;
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) December 24, 2024 11:58AM |
Registered: 2 months ago Posts: 36 |
BusyBox v1.36.1 (2024-09-23 12:34:46 UTC) built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt 23.05.5, r24106-10cc5fcd00 ----------------------------------------------------- root@OpenWrt:/#
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) December 24, 2024 10:10PM |
Registered: 2 months ago Posts: 32 |
Mikele25
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) January 23, 2025 01:26AM |
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) January 23, 2025 02:00AM |
Registered: 2 months ago Posts: 32 |
Mikele25
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) January 23, 2025 06:48AM |
Mikele25
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) January 23, 2025 08:05AM |
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) January 23, 2025 08:21AM |
Registered: 2 months ago Posts: 32 |
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) January 23, 2025 02:43PM |
Admin Registered: 14 years ago Posts: 19,288 |
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) January 31, 2025 02:53AM |
Registered: 2 months ago Posts: 36 |
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 2960 at 0x000017200000 Bad eraseblock 3222 at 0x0000192c0000 Bad eraseblock 3977 at 0x00001f120000 Bad eraseblock 4088 at 0x00001ff00000 Using static partition definition Creating 4 MTD partitions on "nand_mtd": 0x000000000000-0x000000100000 : "u-boot" 0x000000100000-0x000000500000 : "uImage" 0x000000500000-0x000013100000 : "rootfs" 0x000013100000-0x000040000000 : "auxfs" UBI: attaching mtd2 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 129024 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 512 (aligned 512) UBI: data offset: 2048 UBI: attached mtd2 to ubi0 UBI: MTD device name: "rootfs" UBI: MTD device size: 300 MiB UBI: number of good PEBs: 2400 UBI: number of bad PEBs: 0 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 0 UBI: total number of reserved PEBs: 2400 UBI: number of PEBs reserved for bad PEB handling: 24 UBI: max/mean erase counter: 3/1 UBI: image sequence number: 1823311101
Re: OpenWrt on Promwad ThinClient (aka Depo Sky A60) (aka AK Systems AK1100) January 31, 2025 09:08AM |
Registered: 2 months ago Posts: 32 |
Re: OpenWrt on Promwad-ThinClient/Depo Sky A60/AK-Systems AK1100 and AK-systems IP-Plug January 31, 2025 02:13PM |
Registered: 5 months ago Posts: 10 |
Re: OpenWrt on Promwad-ThinClient/Depo Sky A60/AK-Systems AK1100 and AK-systems IP-Plug January 31, 2025 02:33PM |
Registered: 2 months ago Posts: 32 |
Re: OpenWrt on Promwad-ThinClient/Depo Sky A60/AK-Systems AK1100 and AK-systems IP-Plug February 02, 2025 08:19AM |
Registered: 5 months ago Posts: 10 |
Re: OpenWrt on Promwad-ThinClient/Depo Sky A60/AK-Systems AK1100 and AK-systems IP-Plug February 02, 2025 09:11AM |
Registered: 2 months ago Posts: 32 |
Re: Debian/OpenWrt - built-in NAND flash - Promwad-ThinClient/Depo Sky A60/AK-Systems AK1100 and AK-systems IP-Plug February 07, 2025 08:20AM |
Registered: 2 months ago Posts: 32 |