Difference between revisions of "U-Boot communication quick check"
From ArmadeusWiki
m (→U-Boot communication quick check) |
(→U-Boot communication quick check) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==U-Boot communication quick check== | ==U-Boot communication quick check== | ||
* Verify that your RS232 cable is correctly connected | * Verify that your RS232 cable is correctly connected | ||
− | * The [[BootStrap#Introduction|bootstrap jumper]] must be removed as shown on these photos: | + | * The [[BootStrap#Introduction|bootstrap jumper]] '''must be removed''' as shown on these photos: |
− | [[Image:bootstrap_jumper.jpg|On the [[APF9328DevLight]]]] [[Image:bootstrap_jumper_devfull.jpg|On the [[APF9328DevFull]]]] [[Image:bootstrap_jumper_apf27.jpg|On the [[APF27Dev]]]] | + | [[Image:bootstrap_jumper.jpg|On the [[APF9328DevLight]]|200px]] [[Image:bootstrap_jumper_devfull.jpg|On the [[APF9328DevFull]]|200px]] [[Image:bootstrap_jumper_apf27.jpg|On the [[APF27Dev]]|200px]] [[Image:bootstrap_jumper_apf51.jpg|On the [[APF51Dev]]|200px]] |
* Start the RS232 terminal on the Host side (115200 bauds 8N1) | * Start the RS232 terminal on the Host side (115200 bauds 8N1) | ||
Line 10: | Line 10: | ||
The [[Linux_start_screenshot | screenshot]] hereafter shows what you will see on your Terminal emulator during the target boot: | The [[Linux_start_screenshot | screenshot]] hereafter shows what you will see on your Terminal emulator during the target boot: | ||
{{:Linux_start_screenshot}} | {{:Linux_start_screenshot}} | ||
+ | |||
+ | ==Testing TFTP== | ||
+ | * Put some files in ''/tftpboot'' | ||
+ | * To test it from U-Boot: | ||
+ | <pre class="apf"> | ||
+ | BIOS> setenv serverip 192.168.0.2 (the IP address of your tftp server/PC hosting the files to download) | ||
+ | BIOS> tftp ${fileaddr} apf9328-linux.bin | ||
+ | MAC: 00:1e:ac:00:00:01 | ||
+ | operating at 100M full duplex mode | ||
+ | TFTP from server 192.168.0.2; our IP address is 192.168.0.10 | ||
+ | Filename 'apf9328-linux.bin'. | ||
+ | Load address: 0x8000000 | ||
+ | Loading: ################################################################# | ||
+ | ###################################################### | ||
+ | done | ||
+ | Bytes transferred = 1604984 (187d78 hex) | ||
+ | BIOS> | ||
+ | </pre> | ||
+ | |||
+ | A more detailed [[Target_Software_Installation#Configure_U-Boot|U-Boot configuration is in Setup Basics here]] |
Latest revision as of 15:46, 4 May 2011
U-Boot communication quick check
- Verify that your RS232 cable is correctly connected
- The bootstrap jumper must be removed as shown on these photos:
- Start the RS232 terminal on the Host side (115200 bauds 8N1)
- Reset the board
- U-Boot must start
The screenshot hereafter shows what you will see on your Terminal emulator during the target boot: these screenshots show the serial text console during boot on APF9328 and apf27.
APF27 screenshot
U-Boot 1.3.4 (Mar 7 2009 - 14:58:12) apf27 patch 2.0 I2C: ready DRAM: 64 MB NAND: 256 MiB *** Warning - bad CRC or NAND, using default environment In: serial Out: serial Err: serial nand_unlock: start: 000a0000, length: 267780096! got MAC address from EEPROM: 00:1e:ac:00:00:03 Hit any key to stop autoboot: 0 Loading from NAND 256MiB 1,8V 16-bit, offset 0x180000 Automatic boot of image at addr 0xa0000000 ... ## Booting kernel from Legacy Image at a0000000 ... Image Name: Linux-2.6.27.13 Created: 2009-03-07 14:08:53 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1833524 Bytes = 1.7 MB Load Address: a0008000 Entry Point: a0008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux......................................................................................................................... done, booting the kernel. Linux version 2.6.27.13 (eric@shuttle) (gcc version 4.2.1) #1 PREEMPT Sat Mar 7 15:08:45 CET 2009 CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177 Machine: Armadeus APF27 Memory policy: ECC disabled, Data cache writeback CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: console=ttySMX0,115200 mtdparts=mxc_nand.0:640k(U-boot)ro,384k(U-boot_env),512k(firmware),5M(kernel),-(rootfs) root=/dev/mtdblock4 rootfstype=jffs2 ip=192.168.0.10:192.168.0.2:192.168.0.1:255.255.255.0:apf27::off MXC GPIO hardware MXC IRQ initialized PID hash table entries: 256 (order: 8, 1024 bytes) Console: colour dummy device 80x30 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 64MB = 64MB total Memory: 61012KB available (3508K code, 243K data, 104K init) Calibrating delay loop... 199.06 BogoMIPS (lpj=995328) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 440 bytes NET: Registered protocol family 16 i.MX27 chip revision: 3 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered NET: Registered protocol family 1 Power Management for Freescale i.MX2x JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. msgmni has been set to 119 io scheduler noop registered io scheduler deadline registered (default) Console: switching to colour frame buffer device 60x34 mxc_sdc_fb mxc_sdc_fb.0: fb0: DISP0 BG fb device registered successfully. Serial: IMX driver imx-uart.0: ttySMX0 at MMIO 0x1000a000 (irq = 20) is a IMX console [ttySMX0] enabled imx-uart.2: ttySMX2 at MMIO 0x1000c000 (irq = 18) is a IMX FEC ENET Version 0.2 fec: PHY @ 0x1f, ID 0x0007c0c3 -- LAN8700 eth0: ethernet 10:00:00:00:00:10 st: Version 20080504, fixed bufsize 32768, s/g segs 256 Driver 'st' needs updating - please use bus_type methods Driver 'sd' needs updating - please use bus_type methods Driver 'sr' needs updating - please use bus_type methods SCSI Media Changer driver v0.25 Driver 'ch' needs updating - please use bus_type methods MXC MTD nand Driver NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit) RedBoot partition parsing not available 5 cmdlinepart partitions found on MTD device mxc_nand.0 Creating 5 MTD partitions on "mxc_nand.0": 0x00000000-0x000a0000 : "U-boot" 0x000a0000-0x00100000 : "U-boot_env" 0x00100000-0x00180000 : "firmware" 0x00180000-0x00680000 : "kernel" 0x00680000-0x10000000 : "rootfs" usbmon: debugfs is not available mxc-ehci mxc-ehci.0: initializing i.MX USB Controller ULPI OTG Vendor ID 0x4cc Product ID 0x1504 mxc-ehci mxc-ehci.0: Freescale On-Chip EHCI Host Controller mxc-ehci mxc-ehci.0: new USB bus registered, assigned bus number 1 mxc-ehci mxc-ehci.0: irq 56, io mem 0x10024000 mxc-ehci mxc-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: Freescale On-Chip EHCI Host Controller usb usb1: Manufacturer: Linux 2.6.27.13 ehci_hcd usb usb1: SerialNumber: mxc-ehci.0 mxc-ehci mxc-ehci.1: initializing i.MX USB Controller mxc-ehci mxc-ehci.1: Freescale On-Chip EHCI Host Controller mxc-ehci mxc-ehci.1: new USB bus registered, assigned bus number 2 mxc-ehci mxc-ehci.1: irq 54, io mem 0x10024200 mxc-ehci mxc-ehci.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: Freescale On-Chip EHCI Host Controller usb usb2: Manufacturer: Linux 2.6.27.13 ehci_hcd usb usb2: SerialNumber: mxc-ehci.1 usbcore: registered new interface driver cdc_acm cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters usbcore: registered new interface driver usblp usbcore: registered new interface driver cdc_wdm Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. rtc-ds1374: probe of 0-0068 failed with error -121 i2c /dev entries driver at24 1-0050: 256 byte 24c02 EEPROM (writable) i.MX mmc driver apf27: configuring SDHC2 GPIOs usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver oprofile: using timer interrupt. TCP cubic registered NET: Registered protocol family 10 IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. drivers/rtc/hctosys.c: unable to open rtc device (rtc0) eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX. IP-Config: Complete: device=eth0, addr=192.168.0.10, mask=255.255.255.0, gw=192.168.0.1, host=apf27, domain=, nis-domain=(none), bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath= VFS: Mounted root (jffs2 filesystem). Freeing init memory: 104K init started: BusyBox v1.12.1 (2009-03-07 14:50:58 CET) starting pid 266, tty '': '/sbin/mdev -s' starting pid 275, tty '': '/etc/init.d/rcS' Starting portmap: done Initializing random number generator... done. Starting network... ip: RTNETLINK answers: File exists Mounting all filesystems in /etc/fstab starting pid 304, tty '/dev/ttySMX0': '/sbin/getty -L ttySMX0 115200,57600,38400 vt100' Welcome to the Armadeus development environment. armadeus login: root #
APF9328 screenshot
U-Boot 1.3.4 (Mar 7 2009 - 18:03:27) apf9328 patch 3.8 I2C: ready DRAM: 16 MB Flash: 8 MB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 ## Booting kernel from Legacy Image at 100a0000 ... Image Name: Linux-2.6.27.13 Created: 2009-03-07 17:09:47 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1604764 Bytes = 1.5 MB Load Address: 08008000 Entry Point: 08008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux.......................................................................................................... done, booting the kernel. Linux version 2.6.27.13 (eric@shuttle) (gcc version 4.2.1) #1 PREEMPT Sat Mar 7 18:09:45 CET 2009 CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177 Machine: Armadeus APF9328 Memory policy: ECC disabled, Data cache writeback CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064 Kernel command line: console=ttySMX0,115200n8 mtdparts=physmap-flash.0:256k(U-boot)ro,128k(U-boot_env),256k(firmware),2048k(kernel),-(root) root=/dev/mtdblock4 rootfstype=jffs2 ip=192.168.000.10:192.168.000.2:192.168.000.1:255.255.255.0:apf9328::off PID hash table entries: 64 (order: 6, 256 bytes) Console: colour dummy device 80x30 Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory: 16MB = 16MB total Memory: 12808KB available (3052K code, 220K data, 116K init) Calibrating delay loop... 95.84 BogoMIPS (lpj=479232) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 440 bytes NET: Registered protocol family 16 --- Registering APF9328 ressources --- APF9328 ressources registered SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 512 bind 512) TCP reno registered NET: Registered protocol family 1 JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. msgmni has been set to 25 io scheduler noop registered io scheduler deadline registered (default) i.MX Framebuffer driver Console: switching to colour frame buffer device 60x34 Serial: IMX driver imx-uart.0: ttySMX0 at MMIO 0x206000 (irq = 30) is a IMX console [ttySMX0] enabled imx-uart.1: ttySMX1 at MMIO 0x207000 (irq = 24) is a IMX brd: module loaded dm9000 Ethernet Driver, V1.31 eth0: dm9000e at c1854000,c1856002 IRQ 110 MAC: 00:1e:ac:00:00:02 (eeprom) Driver 'sd' needs updating - please use bus_type methods physmap platform flash device: 02000000 at 10000000 physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank Intel/Sharp Extended Query Table at 0x0031 Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled 5 cmdlinepart partitions found on MTD device physmap-flash.0 Creating 5 MTD partitions on "physmap-flash.0": 0x00000000-0x00040000 : "U-boot" 0x00040000-0x00060000 : "U-boot_env" 0x00060000-0x000a0000 : "firmware" 0x000a0000-0x002a0000 : "kernel" 0x002a0000-0x00800000 : "root" usbmon: debugfs is not available Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver usbserial usbserial: USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic usbserial: USB Serial Driver core usb: imx_udc version: 0.5 USB clock 48000000Hz detected mice: PS/2 mouse device common for all mice i2c /dev entries driver i.MX mmc driver usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver hal_imx: pid 8210, vid 8210 hal_imx: controller address c0325258 hal_imx: isp1761_register_driver(drv=c0337870) isp1761 isp1761.0: NXP ISP1761 isp1761 isp1761.0: new USB bus registered, assigned bus number 1 isp1761 isp1761.0: irq 138, io mem 0x00000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected drivers/armadeus/isp1761/hal/hal_imx.c: Registered Driver ISP1761HCD pehci: Host Driver has been Registered TCP cubic registered NET: Registered protocol family 10 IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. drivers/rtc/hctosys.c: unable to open rtc device (rtc0) usb 1-1: new high speed USB device using isp1761 and address 2 usb 1-1: configuration #1 chosen from 1 choice hub 1-1:1.0: USB hub found hub 1-1:1.0: 3 ports detected eth0: link down ADDRCONF(NETDEV_UP): eth0: link is not ready imx-mmc imx-mmc.0: card removed IP-Config: Complete: device=eth0, addr=192.168.0.10, mask=255.255.255.0, gw=192.168.0.1, host=apf9328, domain=, nis-domain=(none), bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath= VFS: Mounted root (jffs2 filesystem). Freeing init memory: 116K init started: BusyBox v1.12.1 (2009-03-07 17:57:33 CET) starting pid 259, tty '': '/sbin/mdev -s' eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready starting pid 271, tty '': '/etc/init.d/rcS' Starting portmap: done Initializing random number generator... done. Starting network... ip: RTNETLINK answers: File exists Mounting all filesystems in /etc/fstab starting pid 303, tty '/dev/ttySMX0': '/sbin/getty -L ttySMX0 115200,57600,38400 vt100' Welcome to the Armadeus development environment. armadeus login: root #
Testing TFTP
- Put some files in /tftpboot
- To test it from U-Boot:
BIOS> setenv serverip 192.168.0.2 (the IP address of your tftp server/PC hosting the files to download) BIOS> tftp ${fileaddr} apf9328-linux.bin MAC: 00:1e:ac:00:00:01 operating at 100M full duplex mode TFTP from server 192.168.0.2; our IP address is 192.168.0.10 Filename 'apf9328-linux.bin'. Load address: 0x8000000 Loading: ################################################################# ###################################################### done Bytes transferred = 1604984 (187d78 hex) BIOS>
A more detailed U-Boot configuration is in Setup Basics here