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

Debian and U-boot on NSA325 (no replies)

$
0
0
Hello, I have 2 of these NSA325 devices and since metarepository went offline they are essentially dead weight. I am very interested in putting debian on them but I have reached an issue when following the U-boot flash tutorial. I am currently just doing a dry run and have not flashed anything yet.
1. So first of all, do I need to do this all over serial? I currently have telnet access since I was trying to avoid opening it up. (but this is not an issue, if needed I can hook up serial directly to the board)
2. Following the tutorial some things don't match up. First of all my mtds are as follows:
```
dev: size erasesize name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"
```
the primary difference to the tutorial is that I have a separate mtd1 that holds the u-boot envs as I understand it.
also my fw_env.config holds the following:
```
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name Device offset Env. size Flash sector size Number of sectors
# NAND example
/dev/mtd1 0x0000 0x20000 0x20000 4
```
Where in the tutorial /dev/mtd0 is defined as above.
So my confusion comes from how the tutorial tell me to erase mtd0 instead of mtd1 for the envs:
```
/usr/sbin/flash_erase /dev/mtd0 0xc0000 1
/usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img
```
shouldn't I erase and flash mtd0?

Also I have the following bad blocks:
```
Scanning device for bad blocks
Bad eraseblock 100 at 0x000000c80000
Bad eraseblock 200 at 0x000001900000
```

How should I proceed?

Viewing all articles
Browse latest Browse all 3178

Trending Articles