Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3248

OpenWrt on TBS MOI+ (no replies)

$
0
0
bodhi,

having

SoC: Kirkwood 88F6282_A1
Model: TBS MOI+
DRAM: 512 MiB
Core: 19 devices, 14 uclasses, devicetree: separate
NAND: 512 MiB
Loading Environment from NAND... OK
In: serial
Out: serial
Err: serial
pcie0.0: Link up
Net: eth0: ethernet-controller@72000
Hit any key to stop autoboot: 0
MOI+> mtd
mtd mtdparts
MOI+> mtdparts

device nand0 <orion_nand>, # parts = 2
#: name size offset mask_flags
0: uboot 0x00100000 0x00000000 0
1: data 0x1ff00000 0x00100000 0

active partition: nand0,0 - (uboot) 0x00100000 @ 0x00000000

defaults:
mtdids : nand0=orion_nand
mtdparts: mtdparts=orion_nand:1m(uboot),-(data)
MOI+>

1. how i have change $mtdparts in order to be able to make visible to the u-boot an ubi partition
i made from debian on mtd1

root@debian:~# ubiattach /dev/ubi_ctrl -m 1
[ 77.885942][ T1188] ubi0: attaching mtd1
[ 78.607169][ T1188] ubi0: scanning is finished
[ 78.637189][ T1188] ubi0: attached mtd1 (name "data", size 511 MiB)
[ 78.643508][ T1188] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 78.656313][ T1188] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 78.664050][ T1188] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[ 78.671819][ T1188] ubi0: good PEBs: 4088, bad PEBs: 0, corrupted PEBs: 0
[ 78.678824][ T1188] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 78.686986][ T1188] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 693956855
[ 78.696956][ T1188] ubi0: available PEBs: 0, total reserved PEBs: 4088, PEBs reserved for bad PEB handling: 80
[ 78.707212][ T1190] ubi0: background thread "ubi_bgt0d" started, PID 1190
UBI device number 0, total 4088 LEBs (527450112 bytes, 503.0 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)
root@debian:~# mount.ubifs /dev/ubi0_0 /mnt/ubifs/
[ 96.833144][ T1192] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 96.849615][ T1193] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1193
[ 96.981245][ T1192] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 96.989437][ T1192] UBIFS (ubi0:0): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 97.000456][ T1192] UBIFS (ubi0:0): FS size: 262821888 bytes (250 MiB, 2037 LEBs), max 2048 LEBs, journal size 9033728 bytes (8 MiB, 71 LEBs)
[ 97.013457][ T1192] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 97.020025][ T1192] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 7C65E193-A894-4039-ACB0-40659E388690, small LPT model
root@debian:~# file /mnt/ubifs/boot/uImage
/mnt/ubifs/boot/uImage: u-boot legacy uImage, Linux-2.6.35.14, Linux/ARM, OS Kernel Image (Not compressed), 3546932 bytes, Wed Mar 26 08:08:36 2014, Load Address: 0X008000, Entry Point: 0X008000, Header CRC: 0X64D64730, Data CRC: 0X102A26D8
root@debian:~#

2. since you've mentioned OpenWrt as rescue system on nand(i have 500MB on mtd1),
which image you'd suggest for this box

root@debian:~# ethtool -i eth0
driver: mv643xx_eth
version: 1.4
firmware-version: N/A
expansion-rom-version:
bus-info: platform
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no


Regards,
alex

Viewing all articles
Browse latest Browse all 3248

Trending Articles