大家好,
最近在AM335x BeagleBone Black 上完整验证了下eMMC的烧写,总结了一篇文档共享出来,欢迎拍砖。
附件是文档中所描述的debrick.sh,烧写用的文件系统在后面的跟帖,这篇帖子可以和“AM335x Flash Tool -- UniFlash 烧写工具使用简介及问题解决方案汇总”互为参考。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
串口信息如下:
U-Boot SPL 2013.01.01 (Oct 25 2014 - 04:49:57)
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, 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
Using default environment
usb_ether
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC c8:a0:30:c5:db:10
HOST MAC de:ad:be:af:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
Retry count exceeded; starting again
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC c8:a0:30:c5:db:10
HOST MAC de:ad:be:af:00:00
RNDIS ready
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
Using usb_ether device
TFTP from server 192.168.2.1; our IP address is 192.168.2.2
Filename 'u-boot-restore.img'.
Load address: 0x807fffc0
Loading: *#########################
877.9 KiB/s
done
Bytes transferred = 365104 (59230 hex)
U-Boot 2013.01.01 (Oct 25 2014 - 04:49:57)
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, bulk combine, bulk split, 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, bulk combine, bulk split, 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
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC c8:a0:30:c5:db:10
HOST MAC de:ad:be:af:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.2.2
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC c8:a0:30:c5:db:10
HOST MAC de:ad:be:af:00:00
RNDIS ready
ERROR: The remote end did not respond in time.
at ether.c:2395/usb_eth_init()
cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
Using cpsw device
TFTP from server 192.168.2.1; our IP address is 192.168.2.2
Filename 'uImage'.
Load address: 0x81000000
Loading: *cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
T cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
T cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
第二阶段要重新建立一个USB RNDIS连接,因此要在PC机重新设定一个USB 网卡。
可以参考http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide#Flashing_a_Board_using_USB中的第28节的说明
过了好几分钟出现
T cpsw Waiting for PHY auto negotiation to complete......Configuring network interfaces... [ 6.268096] net eth0: CPSW phy found : id is : 0x7c0f1
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
done.
Mon Feb 17 19:03:00 UTC 2014
Collected errors:
* opkg_conf_load: Could not create lock file /var/lib/opkg/lock: No such fil INIT: Entering runlevel: 5
Starting syslogd/klogd: done
****************************************************
****************************************************
Sitara Flash Fetcher Script - 07/28/2014
ifconfig: SIOCGIFFLAGS: No such device
Getting flasher script from server: 192.168.100.1
tftp: sendto: Network is unreachable
Unable to fetch debrick script! Exiting...
Stopping Bootlog daemon: bootlogd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2013.05 am335x-evm ttyO0
am335x-evm login: root
root@am335x-evm:~#
目前市面上的eMMC更多的都是eMMC v5.0的,如果是SDK06及以前的版本,需要修改驱动文件\drivers\mmc\core\mmc.c中的mmc_read_ext_csd()函数如下:
static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
{
int err = 0, idx;
unsigned int part_size;
u8 hc_erase_grp_sz = 0, hc_wp_grp_sz = 0;
BUG_ON(!card);
・・・
card->ext_csd.rev = ext_csd[EXT_CSD_REV];
// if (card->ext_csd.rev > 6) {
if (card->ext_csd.rev > 7) {
pr_err("%s: unrecognised EXT_CSD revision %d¥n",
mmc_hostname(card->host), card->ext_csd.rev);
err = -EINVAL;
goto out;
}
・・・
}
为什么在用sd卡烧写时要连接usb线??
U-Boot 2013.01.01 (Oct 21 2014 - 14:08:51)
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, bulk combine, bulk split, 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, bulk combine, bulk split, 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
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC 78:a5:04:c0:a2:22
HOST MAC de:ad:be:af:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
Retry count exceeded; starting again
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.0.198
link up on port 0, speed 100, full duplex
*** ERROR: `serverip' not set
SD卡烧写eMMC不需要连接USB线,用SD卡启动之后执行脚本去擦除和烧写eMMC
Jian Zhou您好:
请问sdk7.0的emmc flash验证了吗?我按照贵公司给的资料,始终不能成功,log如下,请问能帮我解答下吗?
U-Boot 2013.10-00189-g78d8ebd-dirty (Jan 19 2015 - 10:22:35)
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Error - No Valid Environment Area found
*** Warning - bad CRC, using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
mmc0(part 0) is current device
Scanning mmc 0...
Card did not respond to voltage select!
** Bad device mmc 0 **
Card did not respond to voltage select!
mmc0(part 0) is current device
Card did not respond to voltage select!
mmc1(part 0) is current device
SD/MMC found on device 1
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
** No partition table - mmc 1 **
Booting from nand ...
no devices available
no devices available
Bad Linux ARM zImage magic!
需要更改下debrick.sh,将boot_partition.tar.gz和rootfs_partition.tar.gz存放位置的目录更新下
您好:
我也在从T卡烧写到emmc的时候遇到了一点问题,明明已经烧进去了,拔掉T卡emmc里面是空的,而且T卡貌似也不能启动了,连续试了两个卡都是这样,请帮忙看看。log如下。
Sitara Example Flashing Script - 02/11/2014
1+0 records in
1+0 records out
No partition found. Continuing.
Partitioning the eMMC...
Checking that no-one is using this disk right now ...
BLKRRPART: Device or resource busy
sfdisk:
This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
sfdisk: Use the --force flag to overrule all checks.
No partition found. Continuing.
1+0 records in
1+0 records out
Formatting the eMMC into 2 partitions...
mkfs.vfat 2.11 (12 Mar 2005) +-----------------------------+
mke2fs 1.42.1 (17-Feb-2012) | |
/dev/mmcblk0p2 is mounted; will not make a filesystem her| Cannot open /dev/ttyUSB0! |
Formatting done. | |
Copying Files... +-----------------------------+
real 0m 1.21s
user 0m 0.79s
sys 0m 0.27s
Boot partition done.
real 6m 46.24s
user 1m 29.20s
sys 0m 29.84s
RootFS partition done.
It took 454 seconds to complete this task...
********************************************
Sitara Example Flash Script is complete.
Stopping Bootlog daemon: bootlogd.
umount: can't umount /mnt/.psplash: Invalid argument
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2013.05 am335x-evm ttyO0
am335x-evm login: root
root@am335x-evm:~# CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC�
今天试了下烧写android的镜像文件。Android镜像文件从官网下载
http://downloads.ti.com/sitara_android/esd/TI_Android_DevKit/TI_Android_JB_4_2_2_DevKit_4_1_1/index_FDS.html
1. 参照mkmmc-android.sh文件修改debrick.sh。目前先只分2个区,即boot和rootfs
ROOTFS_PARTITION="rootfs.tar.bz2"
mkfs.vfat -F 32 -n boot ${DRIVE}p1 &> /dev/null
mkfs.ext4 -L rootfs ${DRIVE}p2 &> /dev/null
time tar jxvf ${ROOTFS_PARTITION} -C tmp_rootfs &> /dev/null
chmod 755 ${ROOTFS_PARTITION}
2. 修改flasher linux kernel,支持ext4格式!
3. 修改Android镜像里的boot文件夹里的uEnv.txt
fatload mmc 0 81000000 uImage to
fatload mmc 1 81000000 uImage
4. 压缩Android镜像里的boot文件
tar -czvf boot_partition.tar.gz MLO u-boot.img uEnv.txt uImage
将debrick.sh, boot_partition.tar.gz和Filesystem里的rootfs.tar.bz2拷贝到uniflash的tftp目录下。用于烧写emmc的spl,uboot,uImage(参照AM335x Beaglebone Black eMMC烧写记录文档,且添加ext4支持)拷贝至相同目录下。
启动配置uniflashv3,start flashing,按住跳线开关,USB连接BBB,然后eMMC烧写开始。我的烧写进度条一直都不同步,烧写完了,还是0%。整个烧写过程大概130s。
烧写完毕后,断电重启,同样需设置uboot
setenv mmcdev 1; boot
TI的Android4.2.2就能从eMMC启动了。
你在编译kernel时,选上ext4的支持。ext4是用于mount文件系统,env里是ext4格式。因为rootfs用的TI镜像文件,既然它的script里写的是ext4,也许它的rootfs是按ext4来的,
TI原始镜像文件里,uboot是读取uEnv.txt文件,里面有各种启动参数,传递给kernel的参数,以及从那读取uImage的参数,修改fatload mmc 0 81000000 uImage至fatload mmc 1 81000000 uImage
Kernel启动完后,会mount rootfs分区,如果不支持ext4格式,会出现vfs mount panic。
1. In TI official site, there's android image for Beaglebone Black(4.2.2). Download and extract it, then u will find the .sh file.
2 The Linux, which is used for flasher, is located at SDK6.
path/ti-sdk-am335x-evm-06.00.00.00/board-support
follow the instruction of the LouZhu's document which is about how to make bootloader and linux kernel.
3. The images which will be flashed into eMMC are from the Android image package where there's directory called boot.
No Chinese, sorry.
你好:
我目前用BBB, 使用SD卡燒錄MLO/u-boot.img/uImage & rootfs 到 eMMC也遇到問題; 按照你提供的 "BB_Black_EMMC 寫全記錄.pdf" 步驟, 修改debrick.sh內容, 將 /dev/mmcblk0 改成 /dev/mmcblk1, 燒錄過程看似正常, 燒錄後也能開機, 但執行到 VFS: Mounted root (ext3 filesystem) readonly on device 179:2 就出現問題...我的燒錄及開機的訊息分別如下, 不知那裡出了問題 ???
==== 燒錄過程 ====
****************************************************
Sitara Flash Fetcher Script - 07/28/2014
********************************************
Sitara Flash Fetcher is complete. Executing /home/root/debrick.sh.
****************************************************
Sitara Example Flashing Script - 05/20/2015
****************************************************
1+0 records in
1+0 records out
"/home/uat/tr/lang_EN" , ""
Found mounted partition(s) on /dev/mmcblk1: /media/mmcblk1p2
4k erase on /dev/mmcblk1p1
1+0 records in
1+0 records out
Partitioning the eMMC...
1024+0 records in
1024+0 records out
Checking that no-one is using this disk right now ...
[ 42.478363] mmcblk1: unknown partition table
OK
Disk /dev/mmcblk1: 470 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
sfdisk: /dev/mmcblk1: unrecognized partition table type
Old situation:
sfdisk: No partitions found
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/mmcblk1p1 * 0+ 8 9- 72261 c W95 FAT32 (LBA)
/dev/mmcblk1p2 10 469 460 3694950 83 Linux
/dev/mmcblk1p3 0 - 0 0 0 Empty
/dev/mmcblk1p4 0 - 0 0 0 Empty
Successfully wrote the new partition table
Re-reading the partition table ...
[ 50.256591] mmcblk1: p1 p2
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
[ 50.707641] kjournald starting. Commit interval 5 seconds
[ 50.776428] EXT3-fs (mmcblk1p1): error: can't find ext3 filesystem on dev mmcblk1p1.
[ 50.786682] EXT3-fs (mmcblk1p2): using internal journal
[ 50.792175] EXT3-fs (mmcblk1p2): mounted filesystem with ordered data mode
[ 50.799865] EXT2-fs (mmcblk1p1): error: can't find an ext2 filesystem on dev mmcblk1p1.
[ 50.816467] FAT-fs (mmcblk1p1): bogus number of reserved sectors
[ 50.822845] FAT-fs (mmcblk1p1): Can't find a valid FAT filesystem
[ 50.850585] cramfs: wrong magic
[ 50.854644] FAT-fs (mmcblk1p1): bogus number of reserved sectors
[ 50.860992] FAT-fs (mmcblk1p1): Can't find a valid FAT filesystem
Found mounted partition(s) on /dev/mmcblk1: /media/mmcblk1p2
4k erase on /dev/mmcblk1p1
1+0 records in
1+0 records out
Formatting the eMMC into 2 partitions...
mkfs.vfat 2.11 (12 Mar 2005)
mke2fs 1.42.1 (17-Feb-2012)
Discarding device blocks: done
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
231072 inodes, 923737 blocks
46186 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=947912704
29 block groups
32768 blocks per group, 32768 fragments per group
7968 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
Formatting done.
mkdir: can't create directory 'boot': File exists
mkdir: can't create directory 'rootfs': File exists
[ 77.232879] kjournald starting. Commit interval 5 seconds
[ 77.240570] EXT3-fs (mmcblk1p2): using internal journal
[ 77.246063] EXT3-fs (mmcblk1p2): mounted filesystem with ordered data mode
Emptying partitions
Syncing....
Copying Files...
real 0m 0.48s
user 0m 0.25s
sys 0m 0.12s
Boot partition done.
real 1m 9.05s
user 0m 29.30s
sys 0m 12.96s
Syncing....
RootFS partition done.
It took 148 seconds to complete this task...
********************************************
Sitara Example Flash Script is complete.
********************************************
==== 開機過程 ====
Hit any key to stop autoboot: 0
mmc_send_cmd : timeout: No status update
mmc1(part 0) is current device
mmc_send_cmd : timeout: No status update
SD/MMC found on device 1
reading uEnv.txt
** Unable to read file uEnv.txt **
reading uImage
3454528 bytes read in 341 ms (9.7 MiB/s)
run mmcboot-loaduimagefat ...
Booting from mmc ...
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3454464 Bytes = 3.3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (hank@hank-desktop) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #34 Thu May 21 09:10:12 CST 2015
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext3 rootwait ip=none
[ 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: 512MB = 512MB total
[ 0.000000] Memory: 512096k/512096k available, 12192k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05c3000 (5868 kB)
[ 0.000000] .init : 0xc05c3000 - 0xc06de000 (1132 kB)
[ 0.000000] .data : 0xc06de000 - 0xc074a1c0 ( 433 kB)
[ 0.000000] .bss : 0xc074a1e4 - 0xc07792e4 ( 189 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000061] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089263] pid_max: default: 32768 minimum: 301
[ 0.089355] Security Framework initialized
[ 0.089416] Mount-cache hash table entries: 512
[ 0.089721] CPU: Testing write buffer coherency: ok
[ 0.109130] omap_hwmod: pruss: failed to hardreset
[ 0.110046] print_constraints: dummy:
[ 0.110321] NET: Registered protocol family 16
[ 0.111999] OMAP GPIO hardware version 0.1
[ 0.113983] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.115386] omap_i2c.1: alias fck already exists
[ 0.116058] omap2_mcspi.1: alias fck already exists
[ 0.116241] omap2_mcspi.2: alias fck already exists
[ 0.116943] edma.0: alias fck already exists
[ 0.116973] edma.0: alias fck already exists
[ 0.116973] edma.0: alias fck already exists
[ 0.137237] bio: create slab <bio-0> at 0
[ 0.138977] SCSI subsystem initialized
[ 0.140258] usbcore: registered new interface driver usbfs
[ 0.140502] usbcore: registered new interface driver hub
[ 0.140625] usbcore: registered new device driver usb
[ 0.140869] registerd cppi-dma Intr @ IRQ 17
[ 0.140899] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.140899] Cppi41 Init Done
[ 0.140930] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.141143] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.141998] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.142669] tps65910 1-002d: could not be detected
[ 0.143646] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.144500] Switching to clocksource gp timer
[ 0.155975] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.156127] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.156372] MUSB0 controller's USBSS revision = 4ea20800
[ 0.156402] musb0: Enabled SW babble control
[ 0.157135] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
[ 0.157257] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.157501] MUSB1 controller's USBSS revision = 4ea20800
[ 0.157531] musb1: Enabled SW babble control
[ 0.157836] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.157928] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.158020] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.158050] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.158050] usb usb1: Product: MUSB HDRC host driver
[ 0.158050] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.158050] usb usb1: SerialNumber: musb-hdrc.1
[ 0.158721] hub 1-0:1.0: USB hub found
[ 0.158752] hub 1-0:1.0: 1 port detected
[ 0.159179] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
[ 0.159484] NET: Registered protocol family 2
[ 0.159667] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.159881] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.160095] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.160247] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.160247] TCP reno registered
[ 0.160247] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160278] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160430] NET: Registered protocol family 1
[ 0.160614] RPC: Registered named UNIX socket transport module.
[ 0.160644] RPC: Registered udp transport module.
[ 0.160644] RPC: Registered tcp transport module.
[ 0.160644] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.160827] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.177703] VFS: Disk quotas dquot_6.5.2
[ 0.177764] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.178161] msgmni has been set to 1000
[ 0.180572] alg: No test for stdrng (krng)
[ 0.181091] io scheduler noop registered
[ 0.181091] io scheduler deadline registered
[ 0.181152] io scheduler cfq registered (default)
[ 0.449890] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 1.084838] console [ttyO0] enabled
[ 1.088989] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 1.096740] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 1.104400] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 1.112091] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.119781] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.127838] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 1.135131] [drm] Initialized drm 1.1.0 20060810
[ 1.146728] brd: module loaded
[ 1.153594] loop: module loaded
[ 1.157073] i2c-core: driver [tsl2550] using legacy suspend method
[ 1.163543] i2c-core: driver [tsl2550] using legacy resume method
[ 1.169952] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.205322] tps65217 1-0024: TPS65217 ID 0xe version 1.2
[ 1.212799] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
[ 1.221221] print_constraints: DCDC2: 900 <--> 3300 mV at 1325 mV
[ 1.229644] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
[ 1.238006] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[ 1.246368] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[ 1.254638] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
[ 1.263000] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[ 1.279937] omap_hsmmc.0: alias fck already exists
[ 1.285369] omap_hsmmc.1: alias fck already exists
[ 1.293151] omap_i2c.3: alias fck already exists
[ 1.298370] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
[ 1.380004] Console: switching to colour frame buffer device 160x45
[ 1.412567] Setup display mode:hdmi720p complete
[ 1.419189] registered am33xx_sr device
[ 1.424713] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.431854] omap2-nand driver initializing
[ 1.436279] OneNAND driver initializing
[ 1.441253] CAN device driver interface
[ 1.445281] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.495086] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.501556] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 1.508666] davinci_mdio.0: probed
[ 1.512237] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
[ 1.521087] usbcore: registered new interface driver zd1201
[ 1.527069] usbcore: registered new interface driver cdc_ether
[ 1.533294] usbcore: registered new interface driver cdc_eem
[ 1.539337] usbcore: registered new interface driver dm9601
[ 1.545196] cdc_ncm: 04-Aug-2011
[ 1.548706] usbcore: registered new interface driver cdc_ncm
[ 1.554626] Initializing USB Mass Storage driver...
[ 1.559906] usbcore: registered new interface driver usb-storage
[ 1.566192] USB Mass Storage support registered.
[ 1.571105] gadget: using random self ethernet address
[ 1.576568] gadget: using random host ethernet address
[ 1.582550] usb0: MAC 46:9d:fa:5b:ab:1d
[ 1.586578] usb0: HOST MAC ca:d4:c6:84:34:7b
[ 1.591094] gadget: Ethernet Gadget, version: Memorial Day 2008
[ 1.597412] gadget: g_ether ready
[ 1.600982] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.606567] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[ 1.614379] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.621520] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.629058] usb usb2: Product: MUSB HDRC host driver
[ 1.634246] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[ 1.639801] usb usb2: SerialNumber: musb-hdrc.0
[ 1.645233] hub 2-0:1.0: USB hub found
[ 1.649169] hub 2-0:1.0: 1 port detected
[ 1.653991] mousedev: PS/2 mouse device common for all mice
[ 1.660400] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 1.667633] i2c /dev entries driver
[ 1.671722] Linux video capture interface: v2.00
[ 1.676818] usbcore: registered new interface driver uvcvideo
[ 1.682830] USB Video Class driver (1.1.1)
[ 1.965911] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.973388] cpuidle: using governor ladder
[ 1.978057] cpuidle: using governor menu
[ 1.985626] omap4_aes_mod_init: loading AM33X AES driver
[ 1.991271] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.997741] omap4_aes_probe: probe() done
[ 2.002105] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 2.008239] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 2.018798] omap4_sham_probe: probe() done
[ 2.025054] usbcore: registered new interface driver usbhid
[ 2.030914] usbhid: USB HID core driver
[ 2.035675] usbcore: registered new interface driver snd-usb-audio
[ 2.046569] ALSA device list:
[ 2.049713] No soundcards found.
[ 2.053283] oprofile: hardware counters not available
[ 2.058563] oprofile: using timer interrupt.
[ 2.063049] nf_conntrack version 0.5.0 (8001 buckets, 32004 max)
[ 2.069793] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.075469] TCP cubic registered
[ 2.078826] NET: Registered protocol family 17
[ 2.083496] can: controller area network core (rev 20090105 abi 8)
[ 2.090026] NET: Registered protocol family 29
[ 2.094665] can: raw protocol (rev 20090105)
[ 2.099151] can: broadcast manager protocol (rev 20090105 t)
[ 2.105072] Registering the dns_resolver key type
[ 2.110076] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 2.118103] ThumbEE CPU extension supported.
[ 2.122619] mux: Failed to setup hwmod io irq -22
[ 2.128082] Power Management for AM33XX family
[ 2.132904] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 2.139617] Copied the M3 firmware to UMEM
[ 2.143951] Cortex M3 Firmware Version = 0x181
[ 2.149414] create_regulator: DCDC2: Failed to create debugfs directory
[ 2.157043] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[ 2.168365] backlight_init
[ 2.174011] clock: disabling unused clocks to save power
[ 2.189178] Detected MACID=7c:66:9d:44:e2:10
[ 2.194580] cpsw: Detected MACID = 7c:66:9d:44:e2:12
[ 2.200714] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[ 2.221221] Waiting for root device /dev/mmcblk0p2...
[ 2.247375] mmc1: new high speed MMC card at address 0001
[ 2.253540] mmcblk0: mmc1:0001 MMC04G 3.60 GiB
[ 2.258392] mmcblk0boot0: mmc1:0001 MMC04G partition 1 2.00 MiB
[ 2.264648] mmcblk0boot1: mmc1:0001 MMC04G partition 2 2.00 MiB
[ 2.272033] mmcblk0: p1 p2
[ 2.276763] mmcblk0boot1: unknown partition table
[ 2.283172] mmcblk0boot0: unknown partition table
[ 2.342681] kjournald starting. Commit interval 5 seconds
[ 2.348480] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 2.355743] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[ 2.364196] Freeing init memory: 1132K
[ 2.369079] Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 2.382080] Backtrace:
[ 2.384674] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c042dfd4>] (dump_stack+0x18/0x1c)
[ 2.393524] r6:c00420c4 r5:c051cea8 r4:c074cec8 r3:c070208c
[ 2.399444] [<c042dfbc>] (dump_stack+0x0/0x1c) from [<c042e210>] (panic+0x64/0x194)
[ 2.407470] [<c042e1ac>] (panic+0x0/0x194) from [<c042df98>] (init_post+0xac/0xd0)
[ 2.415374] r3:df02bc00 r2:00000006 r1:00000080 r0:c051cea8
[ 2.421325] r7:00000013
[ 2.423980] [<c042deec>] (init_post+0x0/0xd0) from [<c05c3900>] (kernel_init+0xf8/0x120)
[ 2.432434] r4:c06ddcc8 r3:00000112
[ 2.436187] [<c05c3808>] (kernel_init+0x0/0x120) from [<c00420c4>] (do_exit+0x0/0x65c)
use your rootfs which is flashed into eMMC to replace the rootfs in your sd card, then start from SD card to see if it works.
Vice versus, copy the rootfs (at least, it seems workable) from your sd card to replace the rootfs in eMMC by mounting the eMMC rootfs partition.
If not working, the rootfs is wrong.
你好,
出现下面这样的打印信息,应该怎么办?
1+0 records in
1+0 records out
No partition found. Continuing.
Partitioning the eMMC...
./debrick.sh: line 84: sfdisk: command not found
No partition found. Continuing.
1+0 records in
1+0 records out
Formatting the eMMC into 2 partitions...
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat: Too few blocks for viable file system
mke2fs 1.42.1 (17-Feb-2012)
Could not stat /dev/mmcblk1p2 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
Formatting done.
mkdir: can't create directory 'tmp_boot': File exists
mkdir: can't create directory 'tmp_rootfs': File exists
mount: mounting /dev/loop0 on tmp_boot failed: Invalid argument
mount: mounting /dev/mmcblk1p2 on tmp_rootfs failed: No such file or directory
Copying Files...
tar: can't open 'boot_partition.tar.gz': No such file or directory
Command exited with non-zero status 1
real 0m 0.00s
user 0m 0.00s
sys 0m 0.00s
umount: can't umount /dev/mmcblk1p1: Invalid argument
rm: can't remove 'boot_partition.tar.gz': No such file or directory
Boot partition done.
tar: can't open 'rootfs_partition.tar.gz': No such file or directory
Command exited with non-zero status 1
real 0m 0.00s
user 0m 0.00s
sys 0m 0.00s
umount: can't umount /dev/mmcblk1p2: No such file or directory
rm: can't remove 'rootfs_partition.tar.gz': No such file or directory
RootFS partition done.
It took 3 seconds to complete this task...
你好,
请问下面这样是烧写成功了么
Copying Files...
real 0m 0.42s
user 0m 0.26s
sys 0m 0.11s
Boot partition done.
real 0m 57.50s
user 0m 31.63s
sys 0m 14.68s
RootFS partition done.
It took 71 seconds to complete this task..
我拔掉SD卡后,内核没跑起来,提示没找到uImage,但是boot_partition.tar.gz里面是有uImage的,我是不是漏了什么没改?
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, bulk combine, bulk split, 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, bulk combine, bulk split, 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:0 is connected to cpsw. Reconnecting to cpsw
cpsw, usb_ether
Hit any key to stop autoboot: 0
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!
Booting from nand ...
no devices available
Wrong Image Format for bootm command
ERROR: can't get kernel image!