ICT: Diary
D: 28 W: 05

< June 2013 >
Sun Mon Tue Wed Thu Fri Sat
 1
2345678
9101112131415
16171819202122
23242526272829
30 

Based on notaweblog.php by joshua stein

[ ] Wednesday, 12 June 2013 [ ]

Bus Pirate Serial

This is my brief notes on using the bus pirate as serial console for debugging purposes.

The hardware overview of the bus pirate can be found here and the 101 Tutorial runs through the interface.

Plugging the bus pirate in generates the following message

Jun 12 18:50:03 x41 /bsd: uftdi0 at uhub5
Jun 12 18:50:03 x41 /bsd:  port 2 "FTDI FT232R USB UART" rev 2.00/6.00 addr 3
Jun 12 18:50:03 x41 /bsd: ucom0 at uftdi0 portno 1
The bus pirate can then be talked to with cu:
cu -l /dev/cuaU0 -s115200

IO Header on SOIC.

The orange MOSI pin need to be connected to the TX pin on the header, the brown MISO pin needs to be connected to the RX pin, and the black GND needs to be connected to the GND pin on the header.

The calling unit command brings up the

HiZ>
prompt and entering ? will give you a menu. For serial you need to enter:
m - for bus mode
3 - for UART
9 - for 115200 speed
1 - for 8, NONE data bits and parity
1 - for 1 stop bits
enter twice to skip receive polarity and select output type
(0) - for macro menu

Nano Station - OpenWRT

Plugged the Bus Pirate orange cable (MOSI) to the SIN pin on the Nano, the brown cable to the SOUT pin and the black cable to GND.

Upload binary with tftp:

x41:fred ~/nano> tftp 192.168.1.20           
tftp> binary
tftp> put openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin
Sent 2949532 bytes in 19.1 seconds

Had the following error with a snapshot binary:

[    7.560000] VFS: Cannot open root device "(null)" or unknown-block(31,3): error -5
[    7.570000] Please append a correct "root=" boot option; here are the available partitions:
[    7.580000] 1f00             256 mtdblock0  (driver?)
[    7.580000] 1f01              64 mtdblock1  (driver?)
[    7.590000] 1f02            1024 mtdblock2  (driver?)
[    7.590000] 1f03            6528 mtdblock3  (driver?)
[    7.600000] 1f04             256 mtdblock4  (driver?)
[    7.600000] 1f05              64 mtdblock5  (driver?)
[    7.610000] 1f06            7552 mtdblock6  (driver?)
[    7.610000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)

This issue was caused by a broken snapshot - the http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/ ubnt squashfs factory bin worked fine

OpenWrt


$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $