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

NSA320 Broken uboot (3 replies)

$
0
0
Hi all, my name is Leo, I'm a software engineer from Argentina.
First of all thank you for all the information provided here.

I'm here as another fellow who screwed up, all by him self, his NSA320 uboot.

First of all, my setup:
  • NSA320 without HDDs (don't wanna screw up my data, I do have an spare HDD to test tho) (had 4.70 firmware)
  • Manjaro on my laptop
  • RPI3B+ HypriotOS

I've followed the provided steps, and did not spot any errors whatsoever during the procedure. The output of the commands did match the provided outputs in the guide.

But, I think I've screwed up during the first steps, I realize that now that I'm reading the guide again after a good night sleep.

Quote

1. uBoot envs config should be defined as followed in your /etc/fw_env.config

cat /etc/fw_env.config

# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000

If I'm not mistaken, I think I life /dev/mtd1 as it was and just added /dev/mtd0, and seeing the partition table below that's probably my mistake.

After reboot, my NSA320 in a boot loop. When turning on, all LEDs are turned on for 1 second, then they stop, fan spins and then it starts again, LEDs turn on for a seconds and so on.
If I try to hold the power button, nothing happens. Only way to power it off is unplugging power.


I have hacked myself a serial cable from the NSA320 to an RPI3B+, and I've tried to use kwboot as stated (https://forum.doozan.com/read.php?3,51739,51919#msg-51919).
Although, I have never used a serial cable connection before so I'm not sure what to expect or how to debug the connection.

Quote
sudo ./kwboot -t -B 115200 /dev/ttyAMA0 -b ./uboot.2017.07.tld-1.nsa320.bodhi.tar -p -d
Segmentation Fault

I don't think my serial connection is working.
Quote
dmesg | grep ttyAMA0
[1.0837481] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2

Do you guys have any documentation on how to connect the NSA320 through an RPI with serial cable? I couldn't find much info to be honest, but I'm not an expert on the subject so I'm probably using the wrong keywords.

If I'm not mistaken, now what I should do is run kwboot through serial to flash the u-boot image directly.

Thank you!!

Viewing all articles
Browse latest Browse all 3247

Trending Articles