cjueden
Active member
- Thread starter
- #1
Hi all. It's been a while since I've been able to get back to gaining local control of the FCSP. But I was able to make some real progress and gain root access. After a factory reset ( not 100% sure a factory reset is required ), I got root off the SD-card boot path on the AM335x on the back of the device. It's the only way in since every account in `/etc/shadow` ships locked, so there's nothing to guess and no SSH until you modify the password and enable login.
The serial console is on the A8 UART connector 115200 8N1.
The stock U-Boot is locked, so let the chip's boot ROM do the work. The AM335x checks the SD slot before the internal eMMC, so I threw MLO and u-boot.img on a FAT SD card, popped it in, and it booted my U-Boot instead of the vendor's. From there I just added `init=/bin/sh` to the boot args and pointed it at the real kernel and rootfs on eMMC. That drops you to a root shell on the actual filesystem with no login.
Then it's quick housekeeping:
- mount -o remount,rw /
- passwd root — sets a fresh password and unlocks the account
- allow root login
- make sure the ssh service is enabled on boot
sync, pull the SD, and let it boot normal. There's no onboard ethernet. The network comes off the USB port through a USB-to-ethernet dongle. So once it's up you just SSH in as root over that, no UART needed anymore.
Once I had SSH I went back to look at the RS485/Modbus side with way more visibility, since I could read the config and watch the firmware live. I'm getting close to full control, but am currently having issues with the usb ethernet adapter getting on the network. So I thought I would throw this up here and see what others can do while I sort out my network connection issue.
The serial console is on the A8 UART connector 115200 8N1.
The stock U-Boot is locked, so let the chip's boot ROM do the work. The AM335x checks the SD slot before the internal eMMC, so I threw MLO and u-boot.img on a FAT SD card, popped it in, and it booted my U-Boot instead of the vendor's. From there I just added `init=/bin/sh` to the boot args and pointed it at the real kernel and rootfs on eMMC. That drops you to a root shell on the actual filesystem with no login.
Then it's quick housekeeping:
- mount -o remount,rw /
- passwd root — sets a fresh password and unlocks the account
- allow root login
- make sure the ssh service is enabled on boot
sync, pull the SD, and let it boot normal. There's no onboard ethernet. The network comes off the USB port through a USB-to-ethernet dongle. So once it's up you just SSH in as root over that, no UART needed anymore.
Once I had SSH I went back to look at the RS485/Modbus side with way more visibility, since I could read the config and watch the firmware live. I'm getting close to full control, but am currently having issues with the usb ethernet adapter getting on the network. So I thought I would throw this up here and see what others can do while I sort out my network connection issue.
Sponsored