[fedora-arm] PandaBoard on RC2

Jeffrey Bastian jbastian at redhat.com
Fri Jun 28 16:44:45 UTC 2013


On Fri, Jun 28, 2013 at 12:14:34PM -0400, Jon Masters wrote:
> On 06/28/2013 11:51 AM, Jeffrey Bastian wrote:
> > I see the same problem with the Minimal VFAT RC3 images starting on sector 1953
> > instead of 2048.  Also, shouldn't the type of the second filesystem be 82 for
> > Linux Swap?
> 
> Yes to both, but since it doesn't prevent booting I was going to mention
> right after we said "yes" to shipping F19 :)


Actually, it doesn't seem to matter since it's using UUIDs to find the swap
partition.

Short version: I approached it slightly differently and I've got F19 RC3
running on my Pandaboard!

Long version: I'm using a combination of SD card for uboot and USB flash drive
for the root filesystem, so rather than writing the raw image directly to the
devices, I just mounted the F19 RC3 image and copied the files over to my SD
card and USB drive which were already partitioned for Fedora 18.

First, mount the F19 RC3 image:

    # kpartx -av Fedora-Minimal-VFAT-armhfp-19-1-sda.raw
    add map loop0p1 (253:8): 0 39063 linear /dev/loop0 1953
    add map loop0p2 (253:9): 0 1000000 linear /dev/loop0 41016
    add map loop0p3 (253:10): 0 12695313 linear /dev/loop0 1041016
    # mkdir /tmp/p1 /tmp/p3
    # mount -o ro /dev/mapper/loop0p1 /tmp/p1
    # mount -o ro /dev/mapper/loop0p3 /tmp/p3

Then rsync the root filesystem to my USB flash drive:

    # rsync -avHAX --delete /tmp/p3/ /run/media/jbastian/__/

And manually set up the boot partition (where mmcblk0p1 is mounted on
/run/media/jbastian/uboot).  I'm using cat and overwriting the existing
files to keep them in the same spot on the partition since the Pandaboard
is picky about finding the MLO file.

    # cd /tmp/p3/usr/share/uboot-panda
    # cat MLO > /run/media/jbastian/uboot/MLO
    # cat u-boot.bin > /run/media/jbastian/uboot/u-boot.bin
    # cat u-boot.img > /run/media/jbastian/uboot/u-boot.img
    # cat uEnv.txt.panda > /run/media/jbastian/uboot/uEnv.txt
    # rm -rf /run/media/jbastian/uboot/{uI*,vmlinuz*,System*,klist.txt,initr*,config*,dtb*,grub*}
    # rsync -r /tmp/p3/boot/ /run/media/jbastian/uboot/

Finally, I changed the UUID on the root filesystems to match that from 
boot.scr, and updated /etc/fstab on the root filesystem to use the UUIDs of my
swap and uboot partitions.
    
I then moved the SD card and USB flash drive over the Pandaboard
and it booted!  Full transcript is attached.

Jeff
-------------- next part --------------
[root at localhost ~]# picocom -b 115200 /dev/ttyUSB0 
picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready

U-Boot SPL 2013.04 (Jun 17 2013 - 12:42:04)
OMAP4430 ES2.1
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img


U-Boot 2013.04 (Jun 17 2013 - 12:42:04)

CPU  : OMAP4430 ES2.1
Board: OMAP4 Panda
I2C:   ready
DRAM:  1 GiB
MMC:   OMAP SD/MMC: 0
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
17848 bytes read in 9 ms (1.9 MiB/s)
Running bootscript from mmc0 ...
## Executing script at 82000000
Welcome to a-b-c 0.56.

Using findfdt to set u_dtb
Using defaults for omap4-panda-es.dtb, but will not load dtb during startup.
Will scan for kernels on mmc usb, using ext4 ext2 fat filesystems with bootz

Starting menu init....

Using kernel k1 (3.9.5-301.fc19.armv7hl).
Auto-booting 3.9.5-301.fc19.armv7hl in 3 seconds. Type ^C to abort then run menu for help.
 3 2 1...
** Invalid partition 3 **
** Invalid partition 3 **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
** Invalid partition 3 **
** Invalid partition 3 **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
** Invalid partition 3 **
** Invalid partition 3 **
reading /boot/vmlinuz-3.9.5-301.fc19.armv7hl
** Unable to read file /boot/vmlinuz-3.9.5-301.fc19.armv7hl **
reading /boot/uInitrd-3.9.5-301.fc19.armv7hl
** Unable to read file /boot/uInitrd-3.9.5-301.fc19.armv7hl **
reading /boot/vmlinuz-3.9.5-301.fc19.armv7hl
** Unable to read file /boot/vmlinuz-3.9.5-301.fc19.armv7hl **
reading /boot/uInitrd-3.9.5-301.fc19.armv7hl
** Unable to read file /boot/uInitrd-3.9.5-301.fc19.armv7hl **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
** Invalid partition 3 **
** Invalid partition 3 **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
** Invalid partition 3 **
** Invalid partition 3 **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
** Invalid partition 3 **
** Invalid partition 3 **
reading /vmlinuz-3.9.5-301.fc19.armv7hl
** Unable to read file /vmlinuz-3.9.5-301.fc19.armv7hl **
reading /uInitrd-3.9.5-301.fc19.armv7hl
** Unable to read file /uInitrd-3.9.5-301.fc19.armv7hl **
reading /vmlinuz-3.9.5-301.fc19.armv7hl
4299496 bytes read in 216 ms (19 MiB/s)
reading /uInitrd-3.9.5-301.fc19.armv7hl
15102401 bytes read in 709 ms (20.3 MiB/s)
bootargs are ro rootwait rhgb quiet root=UUID=ec232929-5693-4a59-8a16-67e70d2fae0f console=ttyO2,115200n8
## Loading init Ramdisk from Legacy Image at 81600000 ...
   Image Name:   initramfs
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    15102337 Bytes = 14.4 MiB
   Load Address: 00000000
   Entry Point:  00000000

Starting kernel ...

[    0.273864] omap_mux_get_by_name: Could not find signal sys_nirq
[    0.275146] omap_mux_get_by_name: Could not find signal uart1_rx.uart1_rx
[    0.295166] omap_init_sham: platform not supported
[    0.295196] omap_init_aes: platform not supported
[    2.284545] voltdm_scale: No voltage scale API registered for vdd_mpu
[    2.488891] Power Management for TI OMAP4.
[    2.503906] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    8.699859] sd 0:0:0:0: [sda] No Caching mode page present
[    8.705688] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   10.471984] sd 0:0:0:0: [sda] No Caching mode page present
[   10.477935] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   11.592651] sd 0:0:0:0: [sda] No Caching mode page present
[   11.598693] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  OK  ] Started dracut initqueue hook.
         Starting dracut pre-mount hook...
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
[  OK  ] Started dracut pre-mount hook.
         Mounting /sysroot...
[  OK  ] Mounted /sysroot.
[  OK  ] Reached target Initrd Root File System.
         Starting Reload Configuration from the Real Root...
[  OK  ] Started Reload Configuration from the Real Root.
[  OK  ] Reached target Initrd File Systems.
[  OK  ] Reached target Initrd Default Target.

Welcome to Fedora 19 (Schrödinger’s Cat)!

[  OK  ] Stopped Switch Root.
[  OK  ] Stopped target Switch Root.
[  OK  ] Stopped target Initrd File Systems.
[  OK  ] Stopped target Initrd Root File System.
         Expecting device dev-ttyO2.device...
[  OK  ] Listening on Syslog Socket.
[  OK  ] Reached target Remote File Systems.
         Starting Replay Read-Ahead Data...
         Starting Collect Read-Ahead Data...
[  OK  ] Listening on Delayed Shutdown Socket.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
         Mounting POSIX Message Queue File System...
[  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
         Mounting Debug File System...
[  OK  ] Reached target Paths.
         Starting Create static device nodes in /dev...
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on udev Control Socket.
         Starting udev Coldplug all Devices...
[  OK  ] Listening on LVM2 metadata daemon socket.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
         Starting Monitoring of LVM2 mirrors, snapshots etc. ...ress polling...
         Expecting device dev-disk-by\x2duuid-8061d559\x2d799...86499.device...
         Expecting device dev-disk-by\x2duuid-B8FA\x2d52BC.device...
[  OK  ] Stopped Trigger Flushing of Journal to Persistent Storage.
         Stopping Journal Service...
[  OK  ] Stopped Journal Service.
         Starting Journal Service...
[  OK  ] Started Journal Service.
[  OK  ] Started Collect Read-Ahead Data.
[  OK  ] Started Replay Read-Ahead Data.
         Starting File System Check on Root Device...
         Mounting Configuration File System...
         Starting Apply Kernel Variables...
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted Configuration File System.
[  OK  ] Started Create static device nodes in /dev.
[  OK  ] Started Apply Kernel Variables.
         Starting udev Kernel Device Manager...
         Starting LVM2 metadata daemon...
systemd-fsck[270]: _/: clean, 45026/397488 files, 382699/1586914 blocks
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started LVM2 metadata daemon.
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
[   46.862152] omap-abe-twl6040 omap-abe-twl6040: ASoC: platform omap-pcm-audio not registered
[   46.873291] omap-abe-twl6040 omap-abe-twl6040: snd_soc_register_card() failed: -517
[   46.910217] omap-abe-twl6040 omap-abe-twl6040: ASoC: platform omap-pcm-audio not registered
[   46.913757] omap-hdmi-audio omap-hdmi-audio: ASoC: CPU DAI omap-hdmi-audio-dai not registered
[   46.913787] omap-hdmi-audio omap-hdmi-audio: snd_soc_register_card failed (-517)
[   46.936065] omap-abe-twl6040 omap-abe-twl6040: snd_soc_register_card() failed: -517
[   46.944732] omap-hdmi-audio omap-hdmi-audio: ASoC: CPU DAI omap-hdmi-audio-dai not registered
[   46.959411] omap-hdmi-audio omap-hdmi-audio: snd_soc_register_card failed (-517)
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Monitoring of LVM2 mirrors, snapshots etc. u...ogress polling.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Reached target Local File Systems (Pre).
         Starting Configure read-only root support...
[  OK  ] Found device /dev/ttyO2.
[  OK  ] Started Configure read-only root support.
         Starting Load Random Seed...
[  OK  ] Started Load Random Seed.
[  OK  ] Found device /dev/disk/by-uuid/B8FA-52BC.
         Mounting /boot/uboot...
[  OK  ] Reached target Sound Card.
[  OK  ] Found device USB_2.0_FD.
         Activating swap /dev/disk/by-uuid/8061d559-7999-45de...9a02e4086499...
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Activation of DM RAID sets...
[  OK  ] Mounted /boot/uboot.
[  OK  ] Activated swap /dev/disk/by-uuid/8061d559-7999-45de-9bbf-9a02e4086499.
[  OK  ] Reached target Swap.
[  OK  ] Started Activation of DM RAID sets.
[  OK  ] Reached target Local File Systems.
         Starting Recreate Volatile Files and Directories...
         Starting Security Auditing Service...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Trigger Flushing of Journal to Persistent Storage...
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Security Auditing Service.
[  OK  ] Started Recreate Volatile Files and Directories.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Timers.
[  OK  ] Listening on Open-iSCSI iscsiuio Socket.
[  OK  ] Listening on PC/SC Smart Card Daemon Activation Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on Open-iSCSI iscsid Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting firewalld - dynamic firewall daemon...
         Starting NTP client/server...
         Starting Hardware RNG Entropy Gatherer Daemon...
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
         Starting irqbalance daemon...
[  OK  ] Started irqbalance daemon.
         Starting Self Monitoring and Reporting Technology (SMART) Daemon...
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting Login Service...
         Starting System Logging Service...
[  OK  ] Started System Logging Service.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Permit User Sessions...
         Starting Initial Setup configuration program (text mode)...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
         Starting Command Scheduler...
[  OK  ] Started Command Scheduler.
         Starting Job spooling tools...
[  OK  ] Started Job spooling tools.
         Starting Terminate Plymouth Boot Screen...
================================================================================
================================================================================
Initial setup of Fedora

 1) [!] Create user                       2) [!] Set root password
        (No user will be created)                (Password is not set.)
 3) [!] Timezone settings
        (Timezone is not set.)
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 1
================================================================================
================================================================================
Create user

 1) [ ] Create user
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 1
================================================================================
================================================================================
Create user

 1) [x] Create user
 2) Fullname
 3) Username
 4) [ ] Use password
 6) [ ] Administrator
 7) Groups
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 2
================================================================================
================================================================================
Enter new value for 'Fullname' and press enter
Jeff Bastian
================================================================================
================================================================================
Create user

 1) [x] Create user
 2) Fullname
    Jeff Bastian
 3) Username
    jbastian
 4) [ ] Use password
 6) [ ] Administrator
 7) Groups
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 4
================================================================================
================================================================================
Create user

 1) [x] Create user
 2) Fullname
    Jeff Bastian
 3) Username
    jbastian
 4) [x] Use password
 5) Password
 6) [ ] Administrator
 7) Groups
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 5
================================================================================
================================================================================
Password: 
Password (confirm): 
================================================================================
================================================================================
Create user

 1) [x] Create user
 2) Fullname
    Jeff Bastian
 3) Username
    jbastian
 4) [x] Use password
 5) Password
    **********
 6) [ ] Administrator
 7) Groups
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 6
================================================================================
================================================================================
Create user

 1) [x] Create user
 2) Fullname
    Jeff Bastian
 3) Username
    jbastian
 4) [x] Use password
 5) Password
    **********
 6) [x] Administrator
 7) Groups
    wheel
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: c
================================================================================
================================================================================
Initial setup of Fedora

 1) [x] Create user                       2) [x] Set root password
        (Administrator jbastian will be          (Password is not set.)
         created)
 3) [!] Timezone settings
        (Timezone is not set.)
  Please make your choice from above ['q' to quit | 'c' to continue |
2
================================================================================
================================================================================
Please select new root password. You will have to type it twice.

Password: 
Password (confirm): 
================================================================================
================================================================================
Initial setup of Fedora

 1) [x] Create user                       2) [x] Set root password
        (Administrator jbastian will be          (Password is set.)
         created)
 3) [!] Timezone settings
        (Timezone is not set.)
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: 3
================================================================================
================================================================================
Timezone settings

Available regions
 1)  Europe                 6)  Asia                  10)  Atlantic
 2)  US                     7)  Etc                   11)  Pacific
 3)  Australia              8)  Antarctica            12)  America
 4)  Arctic                 9)  Indian
 5)  Africa
Please select the timezone.
Use numbers or type names directly [b to region list, q to quit]: 2
================================================================================
================================================================================
Timezone settings

Available timezones in region US
 1)  Alaska                 4)  Eastern                6)  Mountain
 2)  Arizona                5)  Hawaii                 7)  Pacific
 3)  Central
Please select the timezone.
Use numbers or type names directly [b to region list, q to quit]: 3
================================================================================
================================================================================
Initial setup of Fedora

 1) [x] Create user                       2) [x] Set root password
        (Administrator jbastian will be          (Password is set.)
         created)
 3) [x] Timezone settings
        (US/Central timezone)
  Please make your choice from above ['q' to quit | 'c' to continue |
  'r' to refresh]: c
[  OK  ] Started Initial Setup configuration program (text mode).
         Starting Serial Getty on ttyO2...
[  OK  ] Started Serial Getty on ttyO2.
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.

Fedora release 19 (Schrödinger’s Cat)
Kernel 3.9.5-301.fc19.armv7hl on an armv7l (ttyO2)

unknown4a09c1839916 login: root
Password: 
[root at unknown4a09c1839916 ~]# 
[root at unknown4a09c1839916 ~]# free
             total       used       free     shared    buffers     cached
Mem:       1027060     188104     838956          0      11204      71036
-/+ buffers/cache:     105864     921196
Swap:       499996          0     499996
[root at unknown4a09c1839916 ~]# ping fedoraproject.org
PING fedoraproject.org (140.211.169.197) 56(84) bytes of data.
64 bytes from proxy6a.fedoraproject.org (140.211.169.197): icmp_seq=1 ttl=45 time=82.2 ms
...



More information about the arm mailing list