前言
写此文章主要是为了记录自己学习elinux的过程中的一点经验,如果有错误欢迎指出,谢谢。
环境配置
- Ubuntu 14.04.5
- BeagleBone Black Rev C
- USB-to-Serial CH340G
- Micro SD Card 8G
TI SDK下载
SDK下载网页:
http://software-dl.ti.com/processor-sdk-linux/esd/AM335X/latest/index_FDS.html
下载:ti-processor-sdk-linux-am335x-evm-03.01.00.06-Linux-x86-Install.bin
Ubuntu环境
虚拟机主要注意的地方是网络的配置,需要选择桥接模式。
TI SDK安装
执行命令进行解压。
<pre>
./ti-processor-sdk-linux-am335x-evm-03.01.00.06-Linux-x86-Install.bin
</pre>
一直点Next,安装完毕如下图:
解压得到目录:ti-processor-sdk-linux-am335x-evm-03.01.00.06
TI SDK烧写预编译镜像
先把SD Card格式化为Fat32格式,利用读卡器插入到虚拟机,执行命令:
<pre>
sudo ./create-sdcard.sh
</pre>
按照shell提示输入:
<pre>
leon@ubuntu:~/ti-processor-sdk-linux-am335x-evm-03.01.00.06/bin$ ls
add-to-group.sh create-sdcard.sh setup-host-check.sh setup-package-install.sh setup-tftp.sh unshallow-repositories.sh
common.sh create-ubifs.sh setup-minicom.sh setup-targetfs-nfs.sh setup-uboot-env.sh
leon@ubuntu:~/ti-processor-sdk-linux-am335x-evm-03.01.00.06/bin$ sudo ./create-sdcard.sh
[sudo] password for leon:
################################################################################
This script will create a bootable SD card from custom or pre-built binaries.
The script must be run with root permissions and from the bin directory of
the SDK
Example:
$ sudo ./create-sdcard.sh
Formatting can be skipped if the SD card is already formatted and
partitioned properly.
################################################################################
Available Drives to write images to:
major minor size name
1: 8 16 7782400 sdb
Enter Device Number or n to exit: 1
sdb was selected
df: '/mnt/hgfs': Protocol error
/dev/sdb is an sdx device
Unmounting the sdb drives
df: '/mnt/hgfs': Protocol error
unmounted /dev/sdb1
Current size of sdb1 7781376 bytes
SD Card is not correctly partitioned
################################################################################
Select 2 partitions if only need boot and rootfs (most users).
Select 3 partitions if need SDK & other content on SD card. This is
usually used by device manufacturers with access to partition tarballs.
****WARNING**** continuing will erase all data on sdb
################################################################################
Number of partitions needed [2/3] : 2
Now partitioning sdb with 2 partitions...
################################################################################
Now making 2 partitions
################################################################################
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.745998 s, 1.4 MB/s
Disk /dev/sdb doesn't contain a valid partition table
DISK SIZE - 7969177600 bytes
################################################################################
Partitioning Boot
################################################################################
mkfs.fat 3.0.26 (2014-03-07)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
################################################################################
Partitioning rootfs
################################################################################
mke2fs 1.42.9 (4-Feb-2014)
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
481440 inodes, 1923328 blocks
96166 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1971322880
59 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
################################################################################
Partitioning is now done
Continue to install filesystem or select 'n' to safe exit
Warning Continuing will erase files any files in the partitions
################################################################################
Would you like to continue? [y/n] : y
Mount the partitions
Emptying partitions
Syncing....
################################################################################
Choose file path to install from
1 ) Install pre-built images from SDK
2 ) Enter in custom boot and rootfs file paths
################################################################################
Choose now [1/2] : 1
Will now install from SDK pre-built images
now installing: ti-processor-sdk-linux-am335x-evm-03.01.00.06
################################################################################
Copying files now... will take minutes
################################################################################
Copying boot partition
MLO copied
u-boot.img copied
Copying rootfs System partition
Written 100%
Syncing...
Un-mount the partitions
Remove created temp directories
Operation Finished
</pre>
TI SDK预编译镜像体验
插入SD Card到板子上,按住boot键,上电,查看log输出,从EMMC的Debian系统替换为SDK的Arago系统,说明烧写启动成功。
<pre>
U-Boot SPL 2016.05-g2f757e5b2c (Oct 03 2016 - 17:53:44)
Trying to boot from MMC1
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img
U-Boot 2016.05-g2f757e5b2c (Oct 03 2016 - 17:53:44 -0400)
Watchdog enabled
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env
** Unable to read "uboot.env" from mmc0:1 **
Using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in SROM is de:ad:be:ef:00:01
Address in environment is 54:4a:16:c5:be:4e
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
3451352 bytes read in 269 ms (12.2 MiB/s)
37004 bytes read in 73 ms (494.1 KiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x34a9d8 ]
Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fff3000, end 8ffff08b ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.19-gdb0b54cdad (gtbldadm@ubuntu-16) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 PREEMPT Mon Oct 3 17:43:46 EDT 2016
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x BeagleBone Black
[ 0.000000] cma: Reserved 24 MiB at 0x9e800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=000a8e81-02 rw rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 484620K/524288K available (6551K kernel code, 314K rwdata, 2396K rodata, 264K init, 265K bss, 15092K reserved, 24576K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08c5004 (8949 kB)
[ 0.000000] .init : 0xc08c6000 - 0xc0908000 ( 264 kB)
[ 0.000000] .data : 0xc0908000 - 0xc0956b10 ( 315 kB)
[ 0.000000] .bss : 0xc0956b10 - 0xc0999258 ( 266 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000035] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000044] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000180] clocksource_probe: no matching clocksources found
[ 0.000333] Console: colour dummy device 80x30
[ 0.000354] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000360] This ensures that you still see kernel messages. Please
[ 0.000365] update your kernel commandline.
[ 0.000381] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089231] pid_max: default: 32768 minimum: 301
[ 0.089343] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089353] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089956] Initializing cgroup subsys io
[ 0.089985] Initializing cgroup subsys memory
[ 0.090020] Initializing cgroup subsys devices
[ 0.090034] Initializing cgroup subsys freezer
[ 0.090046] Initializing cgroup subsys perf_event
[ 0.090057] Initializing cgroup subsys pids
[ 0.090081] CPU: Testing write buffer coherency: ok
[ 0.090447] Setting up static identity map for 0x80008200 - 0x80008258
[ 0.092257] devtmpfs: initialized
[ 0.102097] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.114854] omap_hwmod: debugss: _wait_target_disable failed
[ 0.169644] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.171583] pinctrl core: initialized pinctrl subsystem
[ 0.172721] NET: Registered protocol family 16
[ 0.174520] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.199224] cpuidle: using governor ladder
[ 0.229213] cpuidle: using governor menu
[ 0.232982] OMAP GPIO hardware version 0.1
[ 0.241515] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.276175] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.279121] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.279172] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 0.279412] media: Linux media interface: v0.10
[ 0.279467] Linux video capture interface: v2.00
[ 0.279508] pps_core: LinuxPPS API ver. 1 registered
[ 0.279515] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.279538] PTP clock support registered
[ 0.279589] EDAC MC: Ver: 3.0.0
[ 0.280600] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.280877] Advanced Linux Sound Architecture Driver Initialized.
[ 0.281898] clocksource: Switched to clocksource timer1
[ 0.291006] NET: Registered protocol family 2
[ 0.291682] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.291727] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.291766] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.291830] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.291846] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.292038] NET: Registered protocol family 1
[ 0.292404] RPC: Registered named UNIX socket transport module.
[ 0.292420] RPC: Registered udp transport module.
[ 0.292425] RPC: Registered tcp transport module.
[ 0.292431] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.293257] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.294913] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.301661] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.302660] NFS: Registering the id_resolver key type
[ 0.302720] Key type id_resolver registered
[ 0.302728] Key type id_legacy registered
[ 0.302796] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.305961] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.305990] io scheduler noop registered
[ 0.306003] io scheduler deadline registered
[ 0.306145] io scheduler cfq registered (default)
[ 0.307283] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.359347] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.363021] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 0.970585] console [ttyS0] enabled
[ 0.974986] [drm] Initialized drm 1.1.0 20060810
[ 0.986240] loop: module loaded
[ 0.991386] libphy: Fixed MDIO Bus: probed
[ 1.051963] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.058099] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.065161] libphy: 4a101000.mdio: probed
[ 1.069204] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 1.079132] cpsw 4a100000.ethernet: Detected MACID = 54:4a:16:c5:be:4c
[ 1.087423] mousedev: PS/2 mouse device common for all mice
[ 1.093684] i2c /dev entries driver
[ 1.098028] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.105577] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.183221] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.192222] NET: Registered protocol family 10
[ 1.197996] sit: IPv6 over IPv4 tunneling driver
[ 1.203406] NET: Registered protocol family 17
[ 1.208153] Key type dns_resolver registered
[ 1.212712] omap_voltage_late_init: Voltage driver support not added
[ 1.248997] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 1.254681] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.330344] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.340492] mmc0: new high speed SDHC card at address c376
[ 1.346627] mmcblk0: mmc0:c376 SD08G 7.42 GiB
[ 1.352481] mmcblk0: p1 p2
[ 1.384250] tda998x 0-0070: found TDA19988
[ 1.389663] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
[ 1.395757] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.402445] [drm] No driver support for vblank timestamp query.
[ 1.408781] tilcdc 4830e000.lcdc: No connectors reported connected with modes
[ 1.415987] [drm] Cannot find any crtc or sizes - going 1024x768
[ 1.429978] Console: switching to colour frame buffer device 128x48
[ 1.441127] tilcdc 4830e000.lcdc: fb0: frame buffer device
[ 1.471927] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[ 1.477854] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.484758] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.491834] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.498962] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.506084] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.513063] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 1.520696] hctosys: unable to open rtc device (rtc0)
[ 1.529155] ALSA device list:
[ 1.532345] No soundcards found.
[ 1.725839] mmc1: MAN_BKOPS_EN bit is not set
[ 1.733930] mmc1: new high speed MMC card at address 0001
[ 1.739969] mmcblk1: mmc1:0001 MMC04G 3.66 GiB
[ 1.744807] mmcblk1boot0: mmc1:0001 MMC04G partition 1 1.00 MiB
[ 1.750958] mmcblk1boot1: mmc1:0001 MMC04G partition 2 1.00 MiB
[ 1.759775] mmcblk1: p1
[ 1.795879] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.804118] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.813389] devtmpfs: mounted
[ 1.816671] Freeing unused kernel memory: 264K (c08c6000 - c0908000)
[ 1.823858] This architecture does not have kernel memory protection.
[ 2.147826] systemd[1]: System time before build time, advancing clock.
[ 2.237224] random: systemd: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[ 2.258895] random: systemd: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[ 2.295787] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
[ 2.315535] systemd[1]: Detected architecture arm.
Welcome to Arago 2016.08!
[ 2.344572] systemd[1]: Set hostname to <am335x-evm>.
[ 2.361891] random: systemd: uninitialized urandom read (16 bytes read, 20 bits of entropy available)
[ 2.371521] systemd[1]: Initializing machine ID from random generator.
[ 2.497149] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[ 2.514222] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[ 2.525372] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[ 2.549544] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 2.571779] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 2.681263] random: systemd: uninitialized urandom read (16 bytes read, 29 bits of entropy available)
[ 2.691353] random: systemd: uninitialized urandom read (16 bytes read, 29 bits of entropy available)
[ 3.082979] systemd[1]: [/lib/systemd/system/gadget-init.service:15] Unknown lvalue 'ExecStopPre' in section 'Service'
[ 3.419713] systemd[1]: sysinit.target: Found ordering cycle on sysinit.target/start
[ 3.427842] systemd[1]: sysinit.target: Found dependency on alignment.service/start
[ 3.435646] systemd[1]: sysinit.target: Found dependency on basic.target/start
[ 3.442940] systemd[1]: sysinit.target: Found dependency on sockets.target/start
[ 3.450381] systemd[1]: sysinit.target: Found dependency on dropbear.socket/stop
[ 3.457837] systemd[1]: sysinit.target: Found dependency on sysinit.target/start
[ 3.465294] systemd[1]: sysinit.target: Breaking ordering cycle by deleting job alignment.service/start
[ 3.474761] systemd[1]: alignment.service: Job alignment.service/start deleted to break ordering cycle starting with sysinit.target/start
[ SKIP ] Ordering cycle found, skipping alignment.service
[ 3.518220] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 3.542656] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 3.572934] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 3.602328] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 3.632656] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ 3.662314] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 3.684963] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 3.712614] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 3.768544] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ 3.802574] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 3.832666] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ 3.862353] systemd[1]: Reached target Paths.
[ OK ] Reached target Paths.
[ 3.883713] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 3.913940] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ 3.944204] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 3.972392] systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
[ 3.992792] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 4.027650] systemd[1]: Starting Setup Virtual Console...
Starting Setup Virtual Console...
[ 4.083760] systemd[1]: Starting Create list of required static device nodes for the current kernel...
Starting Create list of required st... nodes for the current kernel...
[ 4.156251] systemd[1]: Mounting Temporary Directory...
Mounting Temporary Directory...
[ 4.198652] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 4.266616] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 4.326974] systemd[1]: Starting Journal Service...
[ 4.337512] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting Journal Service...
[ 4.416594] systemd[1]: Starting Load Kernel Modules...
Starting Load Kernel Modules...
[ 4.487075] systemd[1]: Mounting Debug File System...
[ 4.492745] cryptodev: driver 1.8 loaded.
Mounting Debug File System...
[ 4.594186] systemd[1]: Mounted Debug File System.
[ OK ] Mounted Debug File System.
[ 4.622504] systemd[1]: Mounted POSIX Message Queue File System.
[ OK ] Mounted POSIX Message Queue File System.
[ 4.652415] systemd[1]: Mounted Temporary Directory.
[ OK ] Mounted Temporary Directory.
[ 4.682971] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ OK ] Started Setup Virtual Console.
[ OK ] Started Create list of required sta...ce nodes for the current kernel.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Load Kernel Modules.
Starting Apply Kernel Variables...
Starting Rebuild Hardware Database...
Starting Rebuild Dynamic Linker Cache...
Starting Create Static Device Nodes in /dev...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Create Static Device Nodes in /dev.
[ 6.304876] systemd-journald[97]: Received request to flush runtime journal from PID 1
[ OK ] Started Flush Journal to Persistent Storage.
Starting udev Kernel Device Manager...
[ OK ] Reached target Local File Systems (Pre).
Mounting /media/ram...
Mounting /var/volatile...
[ OK ] Mounted /var/volatile.
[ OK ] Mounted /media/ram.
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
Starting Rebuild Journal Catalog...
Starting Load/Save Random Seed...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Create Volatile Files and Directories.
Starting Opkg first boot configure...
Starting Update UTMP about System Boot/Shutdown...
Starting Network Time Synchronization...
[ OK ] Started Network Time Synchronization.
[ 8.973500] random: nonblocking pool is initialized
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Time Synchronized.
Starting Synchronize System and HW clocks...
[FAILED] Failed to start Synchronize System and HW clocks.
See 'systemctl status sync-clocks.service' for details.
[ OK ] Started Rebuild Dynamic Linker Cache.
[ OK ] Started Rebuild Hardware Database.
Starting Update is Completed...
Starting udev Coldplug all Devices...
[ OK ] Started Update is Completed.
[ 13.976581] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ OK ] Found device /dev/ttyS0.
[ 14.142774] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[ 14.213893] 47401300.usb-phy supply vcc not found, using dummy regulator
[ OK ] Started udev Coldplug all Devices.
[ 14.274101] 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 14.629064] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 15.032101] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 15.198125] remoteproc0: wkup_m3 is available
[ 15.247857] remoteproc0: Note: remoteproc is still under development and considered experimental.
[ 15.335168] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 15.714818] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 15.972065] remoteproc0: powering up wkup_m3
[ 15.977544] remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 16.070704] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
[ 16.126585] remoteproc0: remote processor wkup_m3 is now up
[ 16.126612] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
[ 16.147939] irq: no irq domain found for /ocp/pruss@4a300000/intc@4a320000 !
[ 16.276127] irq: no irq domain found for /ocp/pruss@4a300000/intc@4a320000 !
[ 16.362684] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1
[ 16.398651] asoc-simple-card sound: i2s-hifi <-> 48038000.mcasp mapping ok
[ 16.429652] remoteproc1: 4a334000.pru0 is available
[ 16.511210] remoteproc1: Note: remoteproc is still under development and considered experimental.
[ 16.521487] PM: bootloader does not support rtc-only!
[ OK ] Found device /dev/ttyS3.
[ 16.632077] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 16.761728] remoteproc1: registered virtio0 (type 7)
[ 16.842282] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss@4a300000/pru0@4a334000 probed successfully
[ 16.913949] remoteproc2: 4a338000.pru1 is available
[ 16.935768] remoteproc2: Note: remoteproc is still under development and considered experimental.
[ 16.969717] remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 17.218962] remoteproc2: registered virtio1 (type 7)
[ 17.248867] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss@4a300000/pru1@4a338000 probed successfully
[ 18.078167] EXT4-fs (mmcblk1p1): recovery complete
[ 18.096992] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[ OK ] Found device /dev/mmcblk0p1.
[ OK ] Started Opkg first boot configure.
[ 19.995379] usbcore: registered new interface driver usbfs
[ 20.000981] usbcore: registered new interface driver hub
[ 20.083743] usbcore: registered new device driver usb
[ 20.205569] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[ 20.211374] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 1
[ 20.337903] hub 1-0:1.0: USB hub found
[ 20.355344] remoteproc1: powering up 4a334000.pru0
[ 20.375445] hub 1-0:1.0: 1 port detected
[ 20.390203] remoteproc1: Booting fw image am335x-pru0-fw, size 75576
[ 20.430627] ti-pruss 4a300000.pruss: configured system_events = 0x0000000000030000 intr_channels = 0x00000005 host_intr = 0x00000005
[ 20.513751] remoteproc1: remote processor 4a334000.pru0 is now up
[ 20.520330] virtio_rpmsg_bus virtio0: creating channel rpmsg-pru addr 0x1e
[ 20.562236] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 20.568178] remoteproc2: powering up 4a338000.pru1
[ 20.584711] remoteproc2: Booting fw image am335x-pru1-fw, size 75576
[ 20.591378] ti-pruss 4a300000.pruss: configured system_events = 0x00000000000c0000 intr_channels = 0x0000000a host_intr = 0x0000000a
[ 20.652474] remoteproc2: remote processor 4a338000.pru1 is now up
[ 20.659040] virtio_rpmsg_bus virtio1: creating channel rpmsg-pru addr 0x1f
[ 20.682066] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 20.733112] rpmsg_pru rpmsg0: new rpmsg_pru device: /dev/rpmsg_pru30
[ 20.744514] rpmsg_pru rpmsg1: new rpmsg_pru device: /dev/rpmsg_pru31
[ OK ] Reached target Sound Card.
[ OK ] Reached target System Initialization.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on dropbear.socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Telephony service...
Starting Start USB gadget...
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Telephony service.
Starting Network Service...
[ 21.879934] Bluetooth: Core ver 2.21
[ OK ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
[ 21.923171] NET: Registered protocol family 31
[ 21.927660] Bluetooth: HCI device and connection manager initialized
Starting Save/Restore Sound Card State...[ 21.957255] Bluetooth: HCI socket layer initialized
[ 21.962634] Bluetooth: L2CAP socket layer initialized
[ 21.967791] Bluetooth: SCO socket layer initialized
Starting uim-sysfs.service...
[ OK ] Started System Logging Service.
Starting Permit User Sessions...[ 22.310100] using random self ethernet address
[ 22.381042] using random host ethernet address
[ 22.442125] using host ethernet address: 54:4A:16:C5:BE:4E
[ 22.447581] using random self ethernet address
Starting Login Service...
Starting Print notice about GPLv3 packages...
[ 22.551689] using random host ethernet address
[ OK ] Started Kernel Logging Service.
[ 22.622765] using host ethernet address: 54:4A:16:C5:BE:4E Starting Avahi mDNS/DNS-SD Stack...
[ 22.739545] net eth0: initializing cpsw version 1.12 (0)
[ 22.825199] net eth0: initialized cpsw ale version 1.4
[ 22.863553] net eth0: ALE Table size 1024
[ 22.917615] net eth0: phy found : id is : 0x7c0f1
[ 22.968620] libphy: PHY 4a101000.mdio:01 not found
[ 23.042212] net eth0: phy "4a101000.mdio:01" not found on slave 1, err -19
[ 23.099835] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 23.177904] NET: Registered protocol family 15
[ 23.189587] usb0: HOST MAC 54:4a:16:c5:be:4e
[ 23.228737] usb0: MAC fe:31:56:1d:d9:9e
[ 23.342549] Mass Storage Function, version: 2009/09/11
[ 23.347740] LUN: removable file: (no medium)
[ OK ] Started Network Service.
[ 23.430865] LUN: removable read only file: /dev/mmcblk0p1
[ OK ] Started Save/Restore Sound Card State.
[ OK ] Started Permit User Sessions.
[ 23.483173] Number of LUNs=1
[ 23.498448] g_multi gadget: Multifunction Composite Gadget
[ 23.552863] g_multi gadget: g_multi ready
[ OK ] Found device /dev/ttyGS0.
[ 23.634109] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 23.985419] Initializing XFRM netlink socket
[ OK ] Started Start USB gadget.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started Login Service.
Mounting Configuration File System...
[ OK ] Started Serial Getty on ttyGS0.
[ OK ] Started Serial Getty on ttyS3.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Network.
Starting Network Name Resolution...
Starting Lightning Fast Webserver With Light System Requirements...
[ OK ] Mounted Configuration File System.
[ OK ] Started Network Name Resolution.
[ OK ] Started Lightning Fast Webserver With Light System Requirements.
[ OK ] Started uim-sysfs.service.
Starting rc.pvr.service...
[ 29.338512] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
[ OK ] Started rc.pvr.service.
NOTICE: This file system contains the following GPLv3 packages:
autoconf
binutils
bison-dev
bison
cpp-symlinks
cpp
dosfstools
g++-symlinks
g++
gawk-dev
gawk
gcc-symlinks
gcc
gdb
gdbserver
gstreamer1.0-libav
hidapi
libcairo-perf-utils
libgmp10
libidn11
libmpc3
libmpfr4
make
nettle
swig-dev
swig
Starting weston.service...
If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above
NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
[ OK ] Started Print notice about GPLv3 packages.
[ OK ] Started weston.service.
Starting telnetd.service...
[ OK ] Started telnetd.service.
Starting busybox-udhcpd.service...
Starting thttpd.service...
[ OK ] Started busybox-udhcpd.service.
[ OK ] Started thttpd.service.
Starting rng-tools.service...
[ OK ] Started rng-tools.service.
Starting matrix-gui-2.0.service...
[ OK ] Started matrix-gui-2.0.service.
Starting thermal-zone-init.service...
Starting parse-ip.service...
[ OK ] Started thermal-zone-init.service.
| _ |___ ___ ___ ___ | _ |___ ___ ||__ | |
| | | .'| . | . | | | | . | | | -| | |
|||| |,|_ || || || ||| ||||
|| |_|
Arago Project http://arago-project.org am335x-evm ttyS0
Arago 2016.08 am335x-evm ttyS0
am335x-evm login: root
root@am335x-evm:~# ls /
bin boot dev etc home include lib media mnt opt proc run sbin srv sys tmp usr var www
root@am335x-evm:~#
</pre>
关机
执行命令:
<pre>
shutdown -h now
</pre>
关闭电源,可以防止意外断电导致文件系统损坏问题。
<pre>
root@am335x-evm:~# shutdown -h now
[ OK ] Stopped target System Time Synchronized.
Stopping User Ma Stopping Session c1 of user root.
[ OK ] Stopped target Swap.
Stopping Load/Save Random Seed...
Stopping Update UTMP about System Boot/Shutdown...
[ OK ] Stopped target Sound Card.
[ OK ] Stopped Update is Completed.
[ OK ] Stopped Rebuild Dynamic Linker Cache.
[ OK ] Stopped Rebuild Hardware Database.
Stopping Network Time Synchronization...
[ OK ] Stopped target Multi-User System.
Stopping thermal-zone-init.service...
Stopping strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf...
Stopping Kernel Logging Service...
Stopping System Logging Service...
Stopping Telephony service...
Stopping Network Name Resolution...
Stopping parse-ip.service...
[ OK ] Stopped Setup Virtual Console.
Stopping Lightning Fast Webserver With Light System Requirements...
[ OK ] Stopped target Login Prompts.
Stopping Getty on tty1...
Stopping Serial Getty on ttyS0...
Stopping Serial Getty on ttyGS0...
Stopping Avahi mDNS/DNS-SD Stack...
[ OK ] Stopped target Timers.
[ OK ] Stopped Daily Cleanup of Temporary Directories.
Stopping Serial Getty on ttyS3...
Stopping Save/Restore Sound Card State...
[ OK ] Stopped Rebuild Journal Catalog.
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Telephony service.
[ OK ] Stopped Avahi mDNS/DNS-SD Stack.
[ OK ] Stopped Serial Getty on ttyGS0.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped Kernel Logging Service.
[ OK ] Stopped Getty on tty1.
[ OK ] Stopped Serial Getty on ttyS0.
[ OK ] Stopped Network Name Resolution.
[ OK ] Stopped Lightning Fast Webserver With Light System Requirements.
[ OK ] Stopped Serial Getty on ttyS3.
[ OK ] Stopped Session c1 of user root.
[ OK ] Stopped strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
[ OK ] Stopped User Manager for UID 0.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped thermal-zone-init.service.
[ OK ] Stopped parse-ip.service.
[ OK ] Stopped Save/Restore Sound Card State.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
[ OK ] Stopped User Manager for UID 0.
Stopping matrix-gui-2.0.service...
[ OK ] Removed slice User Slice of root.
Stopping Login Service...
[ OK ] Stopped target Network.
Stopping Network Service...
[ OK ] Removed slice system-getty.slice.
Stopping Start USB gadget...
Stopping Permit User Sessions...
[ OK ] Removed slice system-serial\x2dgetty.slice.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
Unmounting /run/media/mmcblk1p1...
Unmounting /var/volatile...
Unmounting /run/media/mmcblk0p1...
Unmounting /run/user/0...
Unmounting /media/ram...
[ OK ] Stopped Network Service.
[ OK ] Stopped Login Service.
[ OK ] Stopped matrix-gui-2.0.service.
[ OK ] Stopped Start USB gadget.
[ OK ] Stopped Permit User Sessions.
[ OK ] Unmounted /run/media/mmcblk1p1.
[ OK ] Unmounted /var/volatile.
[ OK ] Unmounted /run/media/mmcblk0p1.
[ OK ] Unmounted /run/user/0.
[ OK ] Unmounted /media/ram.
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped Create Static Device Nodes in /dev.
Stopping rng-tools.service...
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped Load Kernel Modules.
Stopping D-Bus System Message Bus...
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped rng-tools.service.
Stopping busybox-udhcpd.service...
Stopping thttpd.service...
[ OK ] Stopped busybox-udhcpd.service.
[ OK ] Stopped thttpd.service.
Stopping telnetd.service...
[ OK ] Stopped telnetd.service.
Stopping weston.service...
[ OK ] Stopped weston.service.
[ OK ] Stopped target Remote File Systems.
Stopping rc.pvr.service...
[ OK ] Stopped rc.pvr.service.
Stopping uim-sysfs.service...
[ OK ] Stopped uim-sysfs.service.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Sockets.
[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Closed Syslog Socket.
[ OK ] Closed dropbear.socket.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Closed RPCbind Server Activation Socket.
[ OK ] Stopped target Paths.
[ OK ] Stopped Forward Password Requests to Wall Directory Watch.
[ OK ] Stopped Dispatch Password Requests to Console Directory Watch.
Unmounting Temporary Directory...
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Reached target Shutdown.
[ 462.199857] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 462.226656] systemd-journald[97]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 472.252438] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 472.299024] systemd-shutdown[1]: Sending SIGKILL to PID 890 (rngd).
[ 472.321502] systemd-shutdown[1]: Unmounting file systems.
[ 472.329688] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
[ 478.124297] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 478.153706] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
[ 478.164969] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 478.171034] systemd-shutdown[1]: All filesystems unmounted.
[ 478.176858] systemd-shutdown[1]: Deactivating swaps.
[ 478.182628] systemd-shutdown[1]: All swaps deactivated.
[ 478.187940] systemd-shutdown[1]: Detaching loop devices.
[ 478.212910] systemd-shutdown[1]: All loop devices detached.
[ 478.218607] systemd-shutdown[1]: Detaching DM devices.
[ 478.225392] systemd-shutdown[1]: All DM devices detached.
[ 478.248611] systemd-shutdown[1]: Powering off.
[ 478.253690] musb-hdrc musb-hdrc.2.auto: remove, state 4
[ 478.259005] usb usb1: USB disconnect, device number 1
[ 478.265486] musb-hdrc musb-hdrc.2.auto: USB bus 1 deregistered
[ 478.281685] reboot: Power down
[ 478.285051] System will go to power_off state in approx. 1 second
</pre>
等待板子上的灯都灭掉,就可以断电。
参考
http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_Getting_Started_Guide
http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_create_SD_card_script