element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Enchanted Objects
  • Challenges & Projects
  • Design Challenges
  • Enchanted Objects
  • More
  • Cancel
Enchanted Objects
Blog SAMA5D4 and my Ubuntu experience. Blog Post #2 - A place in the cloud
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Former Member
  • Date Created: 14 Apr 2015 3:44 PM Date Created
  • Views 638 views
  • Likes 4 likes
  • Comments 3 comments
  • atmel_sama5d4
  • place_cloud
  • enchanted_objects
Related
Recommended

SAMA5D4 and my Ubuntu experience. Blog Post #2 - A place in the cloud

Former Member
Former Member
14 Apr 2015

Over the weekend just gone by I managed to create an Ubuntu boot disk and get the SAMA5D4 running with an operating system that provides me with

features I am a little more used to vs the Poky build that Atmel provide.

 

What I built was Ubuntu 14.04.1 LTS compiled and running on the SAMA5D4 Xplained Ultra board. Along with supporting root file system.

Thankfully this include apt-get and I have been able to install all my favourite tools, including a GCC compiler tool chain directly to the

board.  I really enjoying developing directly on single board computers so this is pretty useful for me.

 

I used a lot of web references to help me along my journey.

Prior to visiting the site below I set up an Ubuntu virtual machine, installed the Ubuntu kernel source and installed the gnu toolchain cross

compiler for ARM. That was all without references and actually managed to create a zImage file in a little under an hour. Most of the time

was spent downloading the AT91 source code.

 

The most useful site which gave me a lot of clues was the page for Robert Nelsons EEWIKI website that contains the info for the SAMA5D4EK.

 

Prior to finding that site I was a bit hooked up on the boot manager and couldn't make it work terribly well.

 

So his U-BOOT section was a great guide into getting things rolling a little more smoothly.

I could only get so far in the process until it hung and would go no further.

 

I won't replicate his site here as the steps are quite easily to follow and I've been through his entire process and got it working as well.

The process is quite lengthy though if you want to build your own kernel image, put a couple of hours aside to do it.

 

One of the most important files to modify was uEnv.txt

It contains a large number of boot parameters, but one line in particular was very important in getting this board up and running.

It was the primary board identifier for the device tree.

you have to make sure you include the line

 

fdt_file=/dtbs/at91-sama5d4_xplained_hdmi.dtb

 

<youtube video coming soon for the actual boot process>

 

You don't necessarily need to use the hdmi device tree, but it will add the framebuffer to /dev for you, which means you can tinker

with getting the HDMI screen running. I admit I have had it working, but not as a console display its not easily plumbed into place like on a Raspberry Pi.

 

I managed to draw a lot of colourful pixels to it using the command cat /dev/urandom > /dev/fb0

I found I needed to sometimes plug and unplug the HDMI cable to make it recognize the monitor was there.

image

 

Now that i have Ubuntu on the board I'll be able to continue with my project and install RabbitMQ, as this will be the crux of my message bus/handler for

my IoT cloud based edge router and it will be processing all the data from my IoT devices.

 

If you would like to get hold of the Ubuntu image I created, you can download it from Dropbox.

It's designed to fit onto an 8GB SD card. Just use your favourite image burning software to burn it to the card.

On Windows  I use Win32 Disk Imager for Ubuntu, dd also works just fine.

  • Sign in to reply
Parents
  • Workshopshed
    Workshopshed over 10 years ago

    I've been learning about U-Boot this week too. That's what is used on the Linino side of the Arduino YUN, I needed to use it to reflash the OS image via TFTP when I managed to pull the power half way through flashing it from the SDCard.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Workshopshed

    Hi Andy,

    thats good to know. Yun will be next cab off the rank for me I think.

    Looking forward to giving it a go and seeing what mischief I can get up to. image

     

    Did you manage to recover after your dropped power mid way through the flash?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 10 years ago in reply to Former Member

    The Yun would not boot with the half installed OS, the "press a button for 30s" trick to reinstall the default did not work either, I'm guessing that those buttons are soft keys. So using the Arduino - YunSerialTerminal script and this warranty voiding process Arduino - YunUBootReflash I got it back and operational again, I'm currently running with a Linino version so get a friendly robot on my admin screen rather than Arduino Logo.

     

    image

    If I have time I'll be looking at the boot process in more detail as I'd like to get the boot time down from 41s. I'm hoping to be able to turn off that part of the board and restart it periodically to check the weather before shutting it down again. There seems to be some big pauses in the boot sequence. The idea is to run it all from batteries and have the board sleeping most of the time.

     

    I'm also wondering if I can customise the default admin page but again that's at the end of my challenge when everything else is working correctly.

     

    Here's my boot log.

     

    U-Boot 1.1.4-gd995931a-dirty (Aug  7 2013 - 16:16:04)
    
    Arduino Yun (ar9331) U-boot
    
    DRAM:  64 MB
    Top of RAM usable for U-Boot at: 84000000
    Reserving 142k for U-Boot at: 83fdc000
    Reserving 192k for malloc() at: 83fac000
    Reserving 44 Bytes for Board Info at: 83fabfd4
    Reserving 36 Bytes for Global Data at: 83fabfb0
    Reserving 128k for boot params() at: 83f8bfb0
    Stack Pointer at: 83f8bf98
    Now running in RAM - U-Boot at: 83fdc000
    Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
    flash size 16777216, sector count = 256
    Flash: 16 MB
    Using default environment
    
    In:    serial
    Out:   serial
    Err:   serial
    Net:   ag7240_enet_initialize...
    No valid address in Flash. Using fixed address
    No valid address in Flash. Using fixed address
    : cfg1 0x5 cfg2 0x7114
    eth0: 00:03:7f:09:0b:ad
    eth0 up
    : cfg1 0xf cfg2 0x7214
    eth1: 00:03:7f:09:0b:ad
    athrs26_reg_init_lan
    ATHRS26: resetting s26
    ATHRS26: s26 reset done
    eth1 up
    eth0, eth1
    Hit any key to stop autoboot:  4     3     2     1     0 
    ## 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
    No initrd
    ## Transferring control to Linux (at address 80060000) ...
    ## Giving linux memsize in bytes, 67108864
    
    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:25.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.080000] NET: Registered protocol family 16
    [    0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
    [    0.090000] MIPS: machine is Arduino Yun
    [    0.530000] Setting DogStick2 GPIO
    [    0.550000] bio: create slab <bio-0> at 0
    [    0.550000] SCSI subsystem initialized
    [    0.560000] usbcore: registered new interface driver usbfs
    [    0.560000] usbcore: registered new interface driver hub
    [    0.560000] usbcore: registered new device driver usb
    [    0.570000] Switching to clocksource MIPS
    [    0.570000] NET: Registered protocol family 2
    [    0.570000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.580000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.580000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.580000] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.580000] TCP reno registered
    [    0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.590000] NET: Registered protocol family 1
    [    0.610000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.610000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.620000] msgmni has been set to 119
    [    0.620000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
    [    0.620000] io scheduler noop registered
    [    0.630000] io scheduler deadline registered (default)
    [    0.630000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
    [    0.640000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) i{ a AR933X UART
    [    0.640000] console [ttyATH0] enabled, bootconsole disabled
    [    0.640000] console [ttyATH0] enabled, bootconsole disabled
    [    0.650000] m25p80 spi0.0: found w25q128, expected m25p80
    [    0.650000] m25p80 spi0.0: w25q128 (16384 Kbytes)
    [    0.650000] 7 cmdlinepart partitions found on MTD device spi0.0
    [    0.660000] Creating 7 MTD partitions on "spi0.0":
    [    0.660000] 0x000000000000-0x000000040000 : "u-boot"
    [    0.660000] 0x000000040000-0x000000050000 : "u-boot-env"
    [    0.670000] 0x000000050000-0x000000ea0000 : "rootfs"
    [    0.670000] mtd: partition "rootfs" set to be root filesystem
    [    0.670000] mtd: partition "rootfs_data" created automatically, ofs=7B0000, len=6F0000 
    [    0.680000] 0x0000007b0000-0x000000ea0000 : "rootfs_data"
    [    0.680000] 0x000000ea0000-0x000000fe0000 : "kernel"
    [    0.680000] 0x000000fe0000-0x000000ff0000 : "nvram"
    [    0.690000] 0x000000ff0000-0x000001000000 : "art"
    [    0.690000] 0x000000050000-0x000000fe0000 : "firmware"
    [    0.710000] ag71xx_mdio: probed
    [    0.720000] eth0: Atheros AG71xx at 0xba000000, irq 5
    [    1.270000] eth0: Found an AR7240/AR9330 built-in switch
    [    2.300000] eth1: Atheros AG71xx at 0xb9000000, irq 4
    [    2.850000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
    [    2.850000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    2.850000] ehci-platform ehci-platform: Generic Platform EHCI Controller
    [    2.860000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
    [    2.890000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
    [    2.910000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
    [    2.910000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    2.910000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.910000] usb usb1: Product: Generic Platform EHCI Controller
    [    2.920000] usb usb1: Manufacturer: Linux 3.3.8 ehci_hcd
    [    2.920000] usb usb1: SerialNumber: ehci-platform
    [    2.920000] hub 1-0:1.0: USB hub found
    [    2.920000] hub 1-0:1.0: 1 port detected
    [    2.930000] Initializing USB Mass Storage driver...
    [    2.930000] usbcore: registered new interface driver usb-storage
    [    2.930000] USB Mass Storage support registered.
    [    2.930000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
    [    2.940000] sdhci: Secure Digital Host Controller Interface driver
    [    2.940000] sdhci: Copyright(c) Pierre Ossman
    [    2.940000] usbcore: registered new interface driver ushc
    [    2.940000] TCP cubic registered
    [    2.950000] NET: Registered protocol family 17
    [    2.950000] Bridge firewalling registered
    [    2.950000] 8021q: 802.1Q VLAN Support v1.8
    [    2.960000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
    [    2.960000] Freeing unused kernel memory: 180k freed
    [    3.260000] usb 1-1: new high-speed USB device number 2 using ehci-platform
    [    3.460000] usb 1-1: New USB device found, idVendor=058f, idProduct=6254
    [    3.460000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    3.470000] usb 1-1: Product: USB2.0Hub
    [    3.550000] hub 1-1:1.0: USB hub found
    [    3.550000] hub 1-1:1.0: 4 ports detected
    [    3.990000] usb 1-1.4: new high-speed USB device number 3 using ehci-platform
    [    4.130000] usb 1-1.4: New USB device found, idVendor=058f, idProduct=6366
    [    4.130000] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    4.130000] usb 1-1.4: Product: Mass Storage Device
    [    4.140000] usb 1-1.4: Manufacturer: Generic
    [    4.140000] usb 1-1.4: SerialNumber: 058F0O1111B1
    [    4.210000] scsi0 : usb-storage 1-1.4:1.0
    [    5.020000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
    [    5.210000] scsi 0:0:0:0: Direct-Access     Multi    Flash Reader     1.00 PQ: 0 ANSI: 0
    - preinit -
    Press the [f] key and hit [enter] to enter failsafe mode
    - regular preinit -
    [    9.570000] JFFS2 notice: (526) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 11 of xref (0 dead, 0 orphan) found.
    [   11.270000] sd 0:0:0:0: [sda] 15122432 512-byte logical blocks: (7.74 GB/7.21 GiB)
    [   11.270000] sd 0:0:0:0: [sda] Write Protect is off
    [   11.280000] sd 0:0:0:0: [sda] No Caching mode page present
    [   11.280000] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   11.290000] sd 0:0:0:0: [sda] No Caching mode page present
    [   11.290000] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   11.290000]  sda: sda1
    [   11.300000] sd 0:0:0:0: [sda] No Caching mode page present
    [   11.300000] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   11.300000] sd 0:0:0:0: [sda] Attached SCSI removable disk
    switching to jffs2
    - init -
    
    Please press Enter to activate this console. [   38.580000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
    [   38.580000] Backport generated by backports.git backports-20140320-37-g5c33da0
    [   38.760000] cfg80211: Calling CRDA to update world regulatory domain
    [   38.760000] cfg80211: World regulatory domain updated:
    [   38.760000] cfg80211:  DFS Master region: unset
    [   38.760000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [   38.770000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.770000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.770000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.780000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.780000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.780000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [   39.750000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
    [   39.750000] cfg80211: Calling CRDA for country: US
    [   39.750000] cfg80211: Regulatory domain changed to country: US
    [   39.760000] cfg80211:  DFS Master region: FCC
    [   39.760000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [   39.760000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
    [   39.770000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
    [   39.770000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
    [   39.770000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
    [   39.780000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
    [   40.200000] NTFS driver 2.1.30 [Flags: R/O MODULE].
    [   40.250000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
    [   40.270000] loop: module loaded
    [   40.410000] PPP generic driver version 2.4.2
    [   40.460000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   40.580000] NET: Registered protocol family 24
    [   40.610000] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
    [   41.060000] i2c /dev entries driver
    [   41.100000] Linux video capture interface: v2.00
    [   41.220000] fuse init (API version 7.18)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Workshopshed
    Workshopshed over 10 years ago in reply to Former Member

    The Yun would not boot with the half installed OS, the "press a button for 30s" trick to reinstall the default did not work either, I'm guessing that those buttons are soft keys. So using the Arduino - YunSerialTerminal script and this warranty voiding process Arduino - YunUBootReflash I got it back and operational again, I'm currently running with a Linino version so get a friendly robot on my admin screen rather than Arduino Logo.

     

    image

    If I have time I'll be looking at the boot process in more detail as I'd like to get the boot time down from 41s. I'm hoping to be able to turn off that part of the board and restart it periodically to check the weather before shutting it down again. There seems to be some big pauses in the boot sequence. The idea is to run it all from batteries and have the board sleeping most of the time.

     

    I'm also wondering if I can customise the default admin page but again that's at the end of my challenge when everything else is working correctly.

     

    Here's my boot log.

     

    U-Boot 1.1.4-gd995931a-dirty (Aug  7 2013 - 16:16:04)
    
    Arduino Yun (ar9331) U-boot
    
    DRAM:  64 MB
    Top of RAM usable for U-Boot at: 84000000
    Reserving 142k for U-Boot at: 83fdc000
    Reserving 192k for malloc() at: 83fac000
    Reserving 44 Bytes for Board Info at: 83fabfd4
    Reserving 36 Bytes for Global Data at: 83fabfb0
    Reserving 128k for boot params() at: 83f8bfb0
    Stack Pointer at: 83f8bf98
    Now running in RAM - U-Boot at: 83fdc000
    Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
    flash size 16777216, sector count = 256
    Flash: 16 MB
    Using default environment
    
    In:    serial
    Out:   serial
    Err:   serial
    Net:   ag7240_enet_initialize...
    No valid address in Flash. Using fixed address
    No valid address in Flash. Using fixed address
    : cfg1 0x5 cfg2 0x7114
    eth0: 00:03:7f:09:0b:ad
    eth0 up
    : cfg1 0xf cfg2 0x7214
    eth1: 00:03:7f:09:0b:ad
    athrs26_reg_init_lan
    ATHRS26: resetting s26
    ATHRS26: s26 reset done
    eth1 up
    eth0, eth1
    Hit any key to stop autoboot:  4     3     2     1     0 
    ## 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
    No initrd
    ## Transferring control to Linux (at address 80060000) ...
    ## Giving linux memsize in bytes, 67108864
    
    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:25.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.080000] NET: Registered protocol family 16
    [    0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
    [    0.090000] MIPS: machine is Arduino Yun
    [    0.530000] Setting DogStick2 GPIO
    [    0.550000] bio: create slab <bio-0> at 0
    [    0.550000] SCSI subsystem initialized
    [    0.560000] usbcore: registered new interface driver usbfs
    [    0.560000] usbcore: registered new interface driver hub
    [    0.560000] usbcore: registered new device driver usb
    [    0.570000] Switching to clocksource MIPS
    [    0.570000] NET: Registered protocol family 2
    [    0.570000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.580000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.580000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.580000] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.580000] TCP reno registered
    [    0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.590000] NET: Registered protocol family 1
    [    0.610000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.610000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.620000] msgmni has been set to 119
    [    0.620000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
    [    0.620000] io scheduler noop registered
    [    0.630000] io scheduler deadline registered (default)
    [    0.630000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
    [    0.640000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) i{ a AR933X UART
    [    0.640000] console [ttyATH0] enabled, bootconsole disabled
    [    0.640000] console [ttyATH0] enabled, bootconsole disabled
    [    0.650000] m25p80 spi0.0: found w25q128, expected m25p80
    [    0.650000] m25p80 spi0.0: w25q128 (16384 Kbytes)
    [    0.650000] 7 cmdlinepart partitions found on MTD device spi0.0
    [    0.660000] Creating 7 MTD partitions on "spi0.0":
    [    0.660000] 0x000000000000-0x000000040000 : "u-boot"
    [    0.660000] 0x000000040000-0x000000050000 : "u-boot-env"
    [    0.670000] 0x000000050000-0x000000ea0000 : "rootfs"
    [    0.670000] mtd: partition "rootfs" set to be root filesystem
    [    0.670000] mtd: partition "rootfs_data" created automatically, ofs=7B0000, len=6F0000 
    [    0.680000] 0x0000007b0000-0x000000ea0000 : "rootfs_data"
    [    0.680000] 0x000000ea0000-0x000000fe0000 : "kernel"
    [    0.680000] 0x000000fe0000-0x000000ff0000 : "nvram"
    [    0.690000] 0x000000ff0000-0x000001000000 : "art"
    [    0.690000] 0x000000050000-0x000000fe0000 : "firmware"
    [    0.710000] ag71xx_mdio: probed
    [    0.720000] eth0: Atheros AG71xx at 0xba000000, irq 5
    [    1.270000] eth0: Found an AR7240/AR9330 built-in switch
    [    2.300000] eth1: Atheros AG71xx at 0xb9000000, irq 4
    [    2.850000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
    [    2.850000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    2.850000] ehci-platform ehci-platform: Generic Platform EHCI Controller
    [    2.860000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
    [    2.890000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
    [    2.910000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
    [    2.910000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    2.910000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.910000] usb usb1: Product: Generic Platform EHCI Controller
    [    2.920000] usb usb1: Manufacturer: Linux 3.3.8 ehci_hcd
    [    2.920000] usb usb1: SerialNumber: ehci-platform
    [    2.920000] hub 1-0:1.0: USB hub found
    [    2.920000] hub 1-0:1.0: 1 port detected
    [    2.930000] Initializing USB Mass Storage driver...
    [    2.930000] usbcore: registered new interface driver usb-storage
    [    2.930000] USB Mass Storage support registered.
    [    2.930000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
    [    2.940000] sdhci: Secure Digital Host Controller Interface driver
    [    2.940000] sdhci: Copyright(c) Pierre Ossman
    [    2.940000] usbcore: registered new interface driver ushc
    [    2.940000] TCP cubic registered
    [    2.950000] NET: Registered protocol family 17
    [    2.950000] Bridge firewalling registered
    [    2.950000] 8021q: 802.1Q VLAN Support v1.8
    [    2.960000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
    [    2.960000] Freeing unused kernel memory: 180k freed
    [    3.260000] usb 1-1: new high-speed USB device number 2 using ehci-platform
    [    3.460000] usb 1-1: New USB device found, idVendor=058f, idProduct=6254
    [    3.460000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    3.470000] usb 1-1: Product: USB2.0Hub
    [    3.550000] hub 1-1:1.0: USB hub found
    [    3.550000] hub 1-1:1.0: 4 ports detected
    [    3.990000] usb 1-1.4: new high-speed USB device number 3 using ehci-platform
    [    4.130000] usb 1-1.4: New USB device found, idVendor=058f, idProduct=6366
    [    4.130000] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    4.130000] usb 1-1.4: Product: Mass Storage Device
    [    4.140000] usb 1-1.4: Manufacturer: Generic
    [    4.140000] usb 1-1.4: SerialNumber: 058F0O1111B1
    [    4.210000] scsi0 : usb-storage 1-1.4:1.0
    [    5.020000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
    [    5.210000] scsi 0:0:0:0: Direct-Access     Multi    Flash Reader     1.00 PQ: 0 ANSI: 0
    - preinit -
    Press the [f] key and hit [enter] to enter failsafe mode
    - regular preinit -
    [    9.570000] JFFS2 notice: (526) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 11 of xref (0 dead, 0 orphan) found.
    [   11.270000] sd 0:0:0:0: [sda] 15122432 512-byte logical blocks: (7.74 GB/7.21 GiB)
    [   11.270000] sd 0:0:0:0: [sda] Write Protect is off
    [   11.280000] sd 0:0:0:0: [sda] No Caching mode page present
    [   11.280000] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   11.290000] sd 0:0:0:0: [sda] No Caching mode page present
    [   11.290000] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   11.290000]  sda: sda1
    [   11.300000] sd 0:0:0:0: [sda] No Caching mode page present
    [   11.300000] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [   11.300000] sd 0:0:0:0: [sda] Attached SCSI removable disk
    switching to jffs2
    - init -
    
    Please press Enter to activate this console. [   38.580000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
    [   38.580000] Backport generated by backports.git backports-20140320-37-g5c33da0
    [   38.760000] cfg80211: Calling CRDA to update world regulatory domain
    [   38.760000] cfg80211: World regulatory domain updated:
    [   38.760000] cfg80211:  DFS Master region: unset
    [   38.760000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [   38.770000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.770000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.770000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.780000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.780000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [   38.780000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [   39.750000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
    [   39.750000] cfg80211: Calling CRDA for country: US
    [   39.750000] cfg80211: Regulatory domain changed to country: US
    [   39.760000] cfg80211:  DFS Master region: FCC
    [   39.760000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [   39.760000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
    [   39.770000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
    [   39.770000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
    [   39.770000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
    [   39.780000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
    [   40.200000] NTFS driver 2.1.30 [Flags: R/O MODULE].
    [   40.250000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
    [   40.270000] loop: module loaded
    [   40.410000] PPP generic driver version 2.4.2
    [   40.460000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   40.580000] NET: Registered protocol family 24
    [   40.610000] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
    [   41.060000] i2c /dev entries driver
    [   41.100000] Linux video capture interface: v2.00
    [   41.220000] fuse init (API version 7.18)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube