Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:linksys:lgs352c [2024/08/04 07:50] – [File encapsulation] plappermaul | toh:linksys:lgs352c [2024/10/18 19:22] – [USB] plappermaul | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linksys LGS3xxC / LGS3xxMPC ====== | ====== Linksys LGS3xxC / LGS3xxMPC ====== | ||
| - | Linksys LGS3xxC / LGS3xxMPC | + | Linksys LGS3xxC / LGS3xxMPC |
| ===== U-Boot ===== | ===== U-Boot ===== | ||
| Line 65: | Line 65: | ||
| ==== Install from web interface (easy) ==== | ==== Install from web interface (easy) ==== | ||
| - | Upload images from the vendor | + | :!: Before you install OpenWrt on the switch boot it with vendor |
| - | :!: We have no available images yet. :!: | + | Upload image openwrt-realtek-rtl838x-linksys_lgs310c-squashfs-factory.imag from the vendor WebUI via Configure > Maintenance > Firmware upgrade to the first partition. At the time of upload it should be labeled " |
| ==== Install from CLI (convenient) ==== | ==== Install from CLI (convenient) ==== | ||
| - | If one has enabled SSH CLI in the vendor | + | :!: Before you install OpenWrt on the switch boot it with vendor |
| - | :!: We have no available images yet. :!: | + | If one has enabled SSH CLI in the vendor firmare the OpenWrt image can be installed via tftp from command line. Afterwards switch boot process to primary partition. |
| < | < | ||
| - | firmware upgrade tftp:// | + | LGS3xxC# boot system image2 |
| + | Setup partition 2 as active. | ||
| + | LGS3xxC# show activepartition | ||
| + | Activepartition is partition 2. | ||
| + | LGS3xxC# reboot | ||
| + | |||
| + | LGS3xxC# | ||
| | | ||
| | | ||
| Line 86: | Line 92: | ||
| | | ||
| | | ||
| - | % Firmware upgrade | + | % Firmware upgrade |
| + | |||
| + | LGS3xxC# boot system image1 | ||
| + | Setup partition 1 as active. | ||
| + | LGS3xxC# show activepartition | ||
| + | Activepartition is partition 1. | ||
| + | LGS3xxC# reboot | ||
| </ | </ | ||
| Line 144: | Line 156: | ||
| * an appended tar archive. | * an appended tar archive. | ||
| - | ^ start ^ size ^description ^ | + | ^ start ^ size ^ description ^ |
| | 0 | 4 | magic number (different from board magic) | | | 0 | 4 | magic number (different from board magic) | | ||
| | 4 | 4 | header CRC (based on CRC32) | | | 4 | 4 | header CRC (based on CRC32) | | ||
| Line 160: | Line 172: | ||
| The tar archive contains several files. | The tar archive contains several files. | ||
| - | ^ filename ^ description ^ | + | ^ filename ^ description ^ |
| | firmware_information.txt | version information | | | firmware_information.txt | version information | | ||
| | iss_imagecheck.sh | check if firmware matches the board | | | iss_imagecheck.sh | check if firmware matches the board | | ||
| Line 222: | Line 234: | ||
| {{: | {{: | ||
| + | |||
| + | ==== USB ==== | ||
| + | Picture of the USB/ | ||
| {{: | {{: | ||
| + | |||
| + | USB lanes with missing resistors (and other stuff). Assumption is | ||
| + | |||
| + | - R are 22 Ohm resistors | ||
| + | - D is a TVS diode (Transient Voltage Suppressor) | ||
| + | - L is unknown | ||
| + | |||
| + | {{: | ||
| + | ==== NAND ==== | ||
| + | Picture of the 128MB (1GBit) NAND. | ||
| {{: | {{: | ||
| + | |||
| + | Nand startup log: | ||
| + | < | ||
| + | RTK_SPI_NAND driver is used | ||
| + | [rtk_spi_nand_detect] Start to probe SPI NAND Flash ...... | ||
| + | [rtk_spi_nand_detect] Probe SPI NAND Flash Successed !!! | ||
| + | Use nandbase bb func | ||
| + | Use nandbase bb scan | ||
| + | nand: device found, Manufacturer ID: 0xc2, Chip ID: 0x12 | ||
| + | nand: Macronix | ||
| + | nand: 128MiB, SLC, page size: 2048, OOB size: 64 | ||
| + | Scanning device for bad blocks | ||
| + | Bad eraseblock 114 at 0x000000e40000 | ||
| + | Creating 3 MTD partitions on " | ||
| + | 0x000000000000-0x000004000000 : " | ||
| + | 0x000004000000-0x000005e00000 : " | ||
| + | 0x000005e00000-0x000007c00000 : " | ||
| + | Creating 1 MTD partitions on " | ||
| + | 0x000000100000-0x000000200000 : "JFFS2 CFG" | ||
| + | Realtek SPINAND Flash Driver is successfully installing. | ||
| + | ipip: IPv4 over IPv4 tunneling driver | ||
| + | TCP: cubic registered | ||
| + | NET: Registered protocol family 17 | ||
| + | console [netcon0] enabled | ||
| + | netconsole: network logging started | ||
| + | Freeing unused kernel memory: 16952K (803f2000 - 81480000) | ||
| + | ## Error: " | ||
| + | UBI: attaching mtd4 to ubi0 | ||
| + | [SPINAND] ECC ERROR(ret=ECDEAD08) page_addr = 6BC1! Do retry! | ||
| + | [SPINAND] ECC ERROR(ret=ECDEAD08) page_addr = 6BC1! | ||
| + | UBI: scanning is finished | ||
| + | UBI: attached mtd4 (name " | ||
| + | UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes | ||
| + | UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 | ||
| + | UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 | ||
| + | UBI: good PEBs: 511, bad PEBs: 1, corrupted PEBs: 0 | ||
| + | UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 | ||
| + | UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 539790213 | ||
| + | UBI: available PEBs: 0, total reserved PEBs: 511, PEBs reserved for bad PEB handling: 19 | ||
| + | UBI: background thread " | ||
| + | UBI device number 0, total 511 LEBs (64884736 bytes, 61.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) | ||
| + | </ | ||
| + | |||