Arduino Yun log messages showing garbage data

Dear Sir,

Presently am working on Arduino Yun board.

  1. I successfully flashed below binary files except uboot binary(openwrt-ar71xx-generic-linino-u-boot.bin)

a)openwrt-ar71xx-generic-yun-kernel.bin

b)openwrt-ar71xx-generic-yun-rootfs-squashfs.bin

  1. After that i loaded Yun-Terminal Bridge sktech into Arduino(atmega32u4)

This sktech contains:-
linux baud = 250000
Arduino terminal baud = 115200(i selected by giving ~1 on terminal)

  1. After restart the board i entered below command for booting

bootm 0x9fea0000

  1. Started booting Arduino Yun below log file comming with junk data

** ar7240> bootm 0x9fea0000**
## Booting image at 9fea0000 …
** Image Name: MIPS OpenWrt Linux-3.3.8**
** Created: 2014-11-14 8:00:46 UTC**
** Image Type: MIPS Linux Kernel Image (lzma compressed)**
** Data Size: 1185448 Bytes = 1.1 MB**
** Load Address: 80060000**
** Entry Point: 80060000**
** Verifying Checksum at 0x9fea0040 …OK**
** Uncompressing Kernel Image … OK**
Starting kernel …
[ 0.000000] Linux version 3.3.8 (jenkins@jenkins) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Fri Nov 14 08:57:34 CET 2014
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR9330 rev 1
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 → 0x00004000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 → 0x00004000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=Yun console=ttyATH0,250000 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 60936k/65536k available (2565k kernel code, 4600k reserved, 650k data, 180k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Calibrating delay loop… 265.42 BogoMIPS (lpj=1327104)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] NET: Registered protocol family 16
[ 0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
[ 0.100000] MIPS: machine is Arduino Yun
[ 0.540000] Setting DogStick2 GPIO
[ 0.560000] bio: create slab at 0
[ 0.570000] SCSI subsystem initialized
[ 0.570000] usbcore: registered new interface driver usbfs
[ 0.570000] usbcore: registered new interface driver hub
[ 0.580000] usbcore: registered new device driver usb
[ 0.580000] Switching to clocksource MIPS
[ 0.590000] NET: Registered protocol family 2
[ 0.590000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.600000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.610000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.610000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.620000] TCP reno registered
[ 0.620000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.630000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.630000] NET: Registered protocol family 1
[ 0.660000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.660000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.670000] msgmni has been set to 119
[ 0.680000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[ 0.680000] io scheduler noop registered
[ 0.690000] io scheduler deadline registered (default)
[ 0.690000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.700000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) ió ¶6Ü €L²$³i"$[$’ey0
complete junk data

Why junk data comming after after sometime? i dont what happens inside carambola(wufu module)

please help sir to come out of this problem

I FOLLOWED BELOW LINK FOR FLASHING THE BOARD

https://www.arduino.cc/en/Tutorial/YunUBootReflash

Thanks in advance

regards
amarr.M

Try setting the speed of the linux console to the same value as the Arduino serial interface (115200).

Dear sir,

Thank you pylon for responding. Yes i changed the baudrate Uart (arduino side console-250000) to same

as Linux baudrate(which is used in Yun Terminal sktech-250000) but am getting same junk data

kernel log showing below line after it junk came:-

[ 0.700000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) ió$»

uboot:-

ar7240> printenv bootcmd=bootm 0x9f050000 bootdelay=1 baudrate=115200 ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee ipaddr=192.168.2.100 serverip=192.168.2.254 ethact=eth0 production=no bootargs=console=ttyS0,115200 root=/dev/mtdblock3 rootfstype=squashfs init=/linuxrcmtdparts=ar7240-nor0:256k(uboot),256k(env),1024k(kernel),14720k(rootfs),64k(nvram),64k(art) stdin=serial stdout=serial stderr=serial

Environment size: 377/65532 bytes

But in Yun Terminal sktech linux baud rate showing 250000.

If you dont mine please explain me some what clearly.

Thank you in advance.

Regards amarr.M

You may find more help in the Yun specific forum: Arduino Yun

If you boot, does the line with the kernel command line still shows this?

Kernel command line:  board=Yun console=ttyATH0,250000 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd

If not, please post the current value of this line (not in the environment but in the boot log).

Hi pylon,

sorry for late response

Yes, my u-boot log showing below kernel command line as you told

[ 0.000000] Kernel command line: board=Yun console=ttyATH0,250000 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd :slight_smile: :slight_smile:

How it helpfull for solving the issue i.e avoiding garbage data.

but after half of the booting it showing garbage data, already you know this

[ 0.700000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) îÉIM?ÓÚäÚÙÉH,IÓ ÓàÚøêI6

thank you

regds
amarr

log file ofArduino yun board.txt (7.47 KB)

Try the other way around and set everything to 115200 baud. It seems that at some stage that value is fixed by any component so might have to adapt the values that you have in control.

dear pylon,

i tried to change u-boot baud rate to 250000(which is equal to linux baud rate) for avoiding junk data but not succeed. please help me to comeout of this problem.

thank you in advance pylon.

rgds amarr