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

NSA325V2 u-boot installation - Problem with permission denied (1 reply)

$
0
0
Hello!

I'm trying to install the newest U-Boot 2016.05.

Part "A. Flashing Instruction:" doesn't work for me ("flash_erase /dev/mtd0 0 4" results in an error message). A little bit of googling got me to a page on this forum stating, that my NSA325v2 is using stock boot environment parameter and I've to update them by using the update procedure described in section "B. Flashing default u-boot envs image"

Nevertheless, this doesn't work either, "/usr/sbin/flash_erase /dev/mtd0 0xc0000 1" gives me
root@debian:/media/test/envs# /usr/sbin/flash_erase /dev/mtd0 0xc0000 1
flash_erase: error!: /dev/mtd0
             error 13 (Permission denied)

Any suggestions?

Maybe the following information can help you in finding the problem?

root@debian:/media/test/envs# uname -a
Linux debian 3.14.0-kirkwood-tld-1 #1 PREEMPT Tue Apr 1 22:54:58 PDT 2014 armv5tel GNU/Linux
root@debian:/media/test/envs# cat /proc/mtd
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"
root@debian:/media/test/envs# cat /proc/cmdline
console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
root@debian:/media/test/envs# dmesg | grep nand
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
[   20.299750] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[   20.306133] nand: Eon NAND 128MiB 3,3V 8-bit
[   20.310436] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[   20.390829] Creating 9 MTD partitions on "orion_nand":

Viewing all articles
Browse latest Browse all 3247

Trending Articles