码迷,mamicode.com
首页 > 其他好文 > 详细

Ubuntu 下使用BeagleBone Black(一)

时间:2014-08-01 04:53:51      阅读:978      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   使用   os   io   for   2014   

Ubuntu 下使用BeagleBone Black(一)

bubuko.com,布布扣

 

bubuko.com,布布扣

 

planck@planck-Ubuntu:/dev$ sudo apt-get install ckermit

[sudo] password for planck:

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

openbsd-inetd

The following NEW packages will be installed:

ckermit openbsd-inetd

0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.

Need to get 1,567 kB of archives.

After this operation, 3,551 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/multiverse ckermit amd64 302-5 [1,536 kB]

Get:2 http://cn.archive.ubuntu.com/ubuntu/ trusty/main openbsd-inetd amd64 0.20091229-2ubuntu3 [30.8 kB]

Fetched 1,567 kB in 10s (145 kB/s)

Preconfiguring packages ...

Selecting previously unselected package ckermit.

(Reading database ... 198709 files and directories currently installed.)

Preparing to unpack .../ckermit_302-5_amd64.deb ...

Unpacking ckermit (302-5) ...

Selecting previously unselected package openbsd-inetd.

Preparing to unpack .../openbsd-inetd_0.20091229-2ubuntu3_amd64.deb ...

Unpacking openbsd-inetd (0.20091229-2ubuntu3) ...

Processing triggers for man-db (2.6.7.1-1) ...

Processing triggers for ureadahead (0.100.0-16) ...

ureadahead will be reprofiled on next reboot

Setting up ckermit (302-5) ...

Setting up openbsd-inetd (0.20091229-2ubuntu3) ...

* Stopping internet superserver inetd [ OK ]

* Not starting internet superserver: no services enabled

Processing triggers for ureadahead (0.100.0-16) ...

planck@planck-Ubuntu:/dev$

现在开始执行kermitde 配置工作,参考:http://blog.chinaunix.net/uid-26404201-id-3076576.html

http://home.eeworld.com.cn/home.php?mod=space&uid=140667&do=blog&id=30703

planck@planck-Ubuntu:/dev$ sudo vim /etc/kermit/kermrc

bubuko.com,布布扣

 

保存并退出!

在命令行上输入:sudo kermit -c

输入系统管理员密码,等待目标板上电工作:

bubuko.com,布布扣

 

bubuko.com,布布扣

 

planck@planck-Ubuntu:/dev$ sudo kerm

kermit kermit-sshsub kermrc

planck@planck-Ubuntu:/dev$ sudo kermrc

Executing /home/planck/.mykermrc...

The very long standard initialization file that was distributed

with C-Kermit 6, 7, and 8 is no longer recommended as "standard",

since its features were little used. It is still available in

the C-Kermit distribution as ockermit.ini.

C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5 (64-bit)

Copyright (C) 1985, 2011,

Trustees of Columbia University in the City of New York.

Type ? or HELP for help.

(/dev/) C-Kermit>connect

Connecting to /dev/ttyUSB0, speed 115200

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

----------------------------------------------------

U-Boot SPL 2013.04-dirty (May 06 2013 - 16:12:47)

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)

musb-hdrc: MHDRC RTL version 2.0

musb-hdrc: setup fifo_mode 4

musb-hdrc: 28/31 max ep, 16384/16384 memory

USB Peripheral mode controller at 47401000 using PIO, IRQ 0

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)

musb-hdrc: MHDRC RTL version 2.0

musb-hdrc: setup fifo_mode 4

musb-hdrc: 28/31 max ep, 16384/16384 memory

USB Host mode controller at 47401800 using PIO, IRQ 0

OMAP SD/MMC: 0

mmc_send_cmd : timeout: No status update

reading u-boot.img

reading u-boot.img

U-Boot 2013.04-dirty (May 06 2013 - 16:12:47)

I2C: ready

DRAM: 512 MiB

WARNING: Caches not enabled

NAND: No NAND device found!!!

0 MiB

MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1

*** Warning - readenv() failed, using default environment

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)

musb-hdrc: MHDRC RTL version 2.0

musb-hdrc: setup fifo_mode 4

musb-hdrc: 28/31 max ep, 16384/16384 memory

USB Peripheral mode controller at 47401000 using PIO, IRQ 0

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)

musb-hdrc: MHDRC RTL version 2.0

musb-hdrc: setup fifo_mode 4

musb-hdrc: 28/31 max ep, 16384/16384 memory

USB Host mode controller at 47401800 using PIO, IRQ 0

Net: <ethaddr> not set. Validating first E-fuse MAC

cpsw, usb_ether

Hit any key to stop autoboot: 0

gpio: pin 53 (gpio 53) value is 1

Card did not respond to voltage select!

mmc0(part 0) is current device

mmc_send_cmd : timeout: No status update

Card did not respond to voltage select!

No micro SD card found, setting mmcdev to 1

mmc_send_cmd : timeout: No status update

mmc1(part 0) is current device

gpio: pin 54 (gpio 54) value is 1

SD/MMC found on device 1

reading uEnv.txt

14 bytes read in 4 ms (2.9 KiB/s)

Loaded environment from uEnv.txt

Importing environment from mmc ...

gpio: pin 55 (gpio 55) value is 1

4394080 bytes read in 799 ms (5.2 MiB/s)

gpio: pin 56 (gpio 56) value is 1

23469 bytes read in 57 ms (401.4 KiB/s)

Booting from mmc ...

## Booting kernel from Legacy Image at 80007fc0 ...

Image Name: Angstrom/3.8.13/beaglebone

Image Type: ARM Linux Kernel Image (uncompressed)

Data Size: 4394016 Bytes = 4.2 MiB

Load Address: 80008000

Entry Point: 80008000

Verifying Checksum ... OK

## Flattened Device Tree blob at 80f80000

Booting using the fdt blob at 0x80f80000

XIP Kernel Image ... OK

OK

Using Device Tree in place at 80f80000, end 80f88bac

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

[ 0.193907] omap2_mbox_probe: platform not supported

[ 0.204654] tps65217-bl tps65217-bl: no platform data provided

[ 0.281075] bone-capemgr bone_capemgr.9: slot #0: No cape found

[ 0.318183] bone-capemgr bone_capemgr.9: slot #1: No cape found

[ 0.355291] bone-capemgr bone_capemgr.9: slot #2: No cape found

[ 0.392400] bone-capemgr bone_capemgr.9: slot #3: No cape found

[ 0.423996] omap_hsmmc mmc.4: of_parse_phandle_with_args of ‘reset‘ failed

[ 0.488641] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8

[ 0.500379] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22

[ 0.507689] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single

[ 5.224323] systemd[1]: Failed to insert module ‘autofs4‘

[ 5.557172] systemd[1]: Failed to open /dev/autofs: No such file or directory

[ 5.564751] systemd[1]: Failed to initialize automounter: No such file or directory

[ 5.572910] systemd[1]: Failed to set up automount Arbitrary Executable File Formats File System Automount Point.

[ 9.207493] libphy: PHY 4a101000.mdio:01 not found

[ 9.212570] net eth0: phy 4a101000.mdio:01 not found on slave 1

systemd-fsck[82]: Angstrom: clean, 53634/112672 files, 414652/449820 blocks

.---O---.

| | .-. o o

| | |-----.-----.-----.| | .----..-----.-----.

| | | __ | ---‘| ‘--.| .-‘| | |

| | | | | |--- || --‘| | | ‘ | | | |

‘---‘---‘--‘--‘--. |-----‘‘----‘‘--‘ ‘-----‘-‘-‘-‘

-‘ |

‘---‘

The Angstrom Distribution BeagleBone_Black ttyO0

Angstrom v2012.12 - Kernel 3.8.13

BeagleBone_Black login: root

Password:

Last login: Fri Dec 31 19:03:07 EST 1999 on ttyO0

root@BeagleBone_Black:~# ifconfig

eth0 Link encap:Ethernet HWaddr C8:A0:30:B9:7F:2B

inet addr:10.0.1.118 Bcast:10.0.255.255 Mask:255.255.0.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:49 errors:0 dropped:11 overruns:0 frame:0

TX packets:36 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:7407 (7.2 KiB) TX bytes:8243 (8.0 KiB)

Interrupt:56

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:4 errors:0 dropped:0 overruns:0 frame:0

TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:355 (355.0 B) TX bytes:355 (355.0 B)

root@BeagleBone_Black:~#

//准备退出系统,关机……

root@BeagleBone_Black:~# shutdown --p now

Sending SIGTERM to remaining processes...

Sending SIGKILL to remaining processes...

Unmounting file systems.

Unmounting /sys/kernel/config.

Unmounting /dev/mqueue.

Unmounting /sys/kernel/debug.

Unmounting /etc/machine-id.

All filesystems unmounted.

Deactivating swaps.

All swaps deactivated.

Detaching loop devices.

Detaching loopback /dev/loop7.

Detaching loopback /dev/loop6.

Detaching loopback /dev/loop5.

Detaching loopback /dev/loop4.

Detaching loopback /dev/loop3.

Detaching loopback /dev/loop2.

Detaching loopback /dev/loop1.

Detaching loopback /dev/loop0.

All loop devices detached.

Detaching DM devices.

All DM devices detached.

[ 457.455994] (NULL device *): gadget not registered.

[ 457.462062] Power down.

[ 457.467052] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000

[ 457.467052]

[ 457.476620] [<c001051d>] (unwind_backtrace+0x1/0x8c) from [<c0385d41>] (panic+0x55/0x14c)

[ 457.485164] [<c0385d41>] (panic+0x55/0x14c) from [<c002ec8f>] (do_exit+0x2ef/0x5dc)

[ 457.493168] [<c002ec8f>] (do_exit+0x2ef/0x5dc) from [<c0036983>] (sys_reboot+0xb5/0x126)

[ 457.501616] [<c0036983>] (sys_reboot+0xb5/0x126) from [<c000c641>] (ret_fast_syscall+0x1/0x46)

[ 457.510602] drm_kms_helper: panic occurred, switching back to text console

!!!同时按下Ctrl+\+C,退出kermrt!

----------------------------------------------------

(/dev/) C-Kermit>exit

Closing /dev/ttyUSB0...OK

planck@planck-Ubuntu:/dev$

bubuko.com,布布扣

Ubuntu 下使用BeagleBone Black(一),布布扣,bubuko.com

Ubuntu 下使用BeagleBone Black(一)

标签:style   blog   http   使用   os   io   for   2014   

原文地址:http://www.cnblogs.com/philips-lu/p/3884018.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!