完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
大家好,
最近在AM335x BeagleBone Black 上完整验证了下eMMC的烧写,总结了一篇文档共享出来,欢迎拍砖。 附件是文档中所描述的debrick.sh,烧写用的文件系统在后面的跟帖,这篇帖子可以和“AM335x Flash Tool -- UniFlash 烧写工具使用简介及问题解决方案汇总”互为参考。 |
|
相关推荐
90个回答
|
|
|
看一下你SD卡里的debrick.sh脚本,里面的DRIVE="/dev/mmcblk0"应该改成DRIVE="/dev/mmcblk1",这才是烧写eMMC。 |
|
|
|
|
|
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. |
|
|
|
|
cmh25 发表于 2018-6-1 18:55 Thanks very much. |
|
|
|
|
|
|
|
|
|
|
|
你好: 我目前用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 [ 0.138977] SCSI subsystem initialized [ 0.140258] u***core: registered new interface driver u***fs [ 0.140502] u***core: registered new interface driver hub [ 0.140625] u***core: registered new device driver u*** [ 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] mu***-ti81xx mu***-ti81xx: mu***0, board_mode=0x13, plat_mode=0x3 [ 0.141143] mu***-ti81xx mu***-ti81xx: mu***1, 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] mu***-hdrc: version 6.0, ?dma?, otg (peripheral+host) [ 0.156127] mu***-hdrc mu***-hdrc.0: dma type: dma-cppi41 [ 0.156372] MUSB0 controller's USBSS revision = 4ea20800 [ 0.156402] mu***0: Enabled SW babble control [ 0.157135] mu***-hdrc mu***-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18 [ 0.157257] mu***-hdrc mu***-hdrc.1: dma type: dma-cppi41 [ 0.157501] MUSB1 controller's USBSS revision = 4ea20800 [ 0.157531] mu***1: Enabled SW babble control [ 0.157836] mu***-hdrc mu***-hdrc.1: MUSB HDRC host driver [ 0.157928] mu***-hdrc mu***-hdrc.1: new USB bus registered, assigned bus number 1 [ 0.158020] u*** u***1: New USB device found, idVendor=1d6b, idProduct=0002 [ 0.158050] u*** u***1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.158050] u*** u***1: Product: MUSB HDRC host driver [ 0.158050] u*** u***1: Manufacturer: Linux 3.2.0 mu***-hcd [ 0.158050] u*** u***1: SerialNumber: mu***-hdrc.1 [ 0.158721] hub 1-0:1.0: USB hub found [ 0.158752] hub 1-0:1.0: 1 port detected [ 0.159179] mu***-hdrc mu***-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] u***core: registered new interface driver zd1201 [ 1.527069] u***core: registered new interface driver cdc_ether [ 1.533294] u***core: registered new interface driver cdc_eem [ 1.539337] u***core: registered new interface driver dm9601 [ 1.545196] cdc_ncm: 04-Aug-2011 [ 1.548706] u***core: registered new interface driver cdc_ncm [ 1.554626] Initializing USB Mass Storage driver... [ 1.559906] u***core: registered new interface driver u***-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] u***0: MAC 46:9d:fa:5b:ab:1d [ 1.586578] u***0: 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] mu***-hdrc mu***-hdrc.0: MUSB HDRC host driver [ 1.606567] mu***-hdrc mu***-hdrc.0: new USB bus registered, assigned bus number 2 [ 1.614379] u*** u***2: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.621520] u*** u***2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.629058] u*** u***2: Product: MUSB HDRC host driver [ 1.634246] u*** u***2: Manufacturer: Linux 3.2.0 mu***-hcd [ 1.639801] u*** u***2: SerialNumber: mu***-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] u***core: 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] u***core: registered new interface driver u***hid [ 2.030914] u***hid: USB HID core driver [ 2.035675] u***core: registered new interface driver snd-u***-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] [ [ 2.393524] r6:c00420c4 r5:c051cea8 r4:c074cec8 r3:c070208c [ 2.399444] [ [ 2.407470] [ [ 2.415374] r3:df02bc00 r2:00000006 r1:00000080 r0:c051cea8 [ 2.421325] r7:00000013 [ 2.423980] [ [ 2.432434] r4:c06ddcc8 r3:00000112 [ 2.436187] [ |
|
|
|
|
冷冷萧魂丶芮 发表于 2018-6-1 19:13 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. |
|
|
|
|
cmh25 发表于 2018-6-1 19:19 你好, 非常謝謝你的回覆 我在 debrick.sh 裡加入 sync 即可成功. |
|
|
|
|
|
当时我用SD卡时,好像也没成功,是没有自动执行好debrick文件,什么没找到创建的两个文件夹。后来我在flasher的Linux下mount eMMC的分区,发现确实没有烧写进去,然后就手动执行了次debrick文件,这才烧写进去。sync是刷新数据,然后才往下执行,也许没有sync,数据乱了。有时间了,我好好看看这条命令,谢谢。 |
|
|
|
|
cmh25 发表于 2018-6-1 19:48 你好, 出现下面这样的打印信息,应该怎么办? 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... |
|
|
|
|
|
应该是文件系统用的不对,请下载我在本帖中上传的用于烧写eMMC的文件系统。 |
|
|
|
|
|
你好, 请问下面这样是烧写成功了么 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 mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn) mu***-hdrc: MHDRC RTL version 2.0 mu***-hdrc: setup fifo_mode 4 mu***-hdrc: 28/31 max ep, 16384/16384 memory USB Peripheral mode controller at 47401000 using PIO, IRQ 0 mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn) mu***-hdrc: MHDRC RTL version 2.0 mu***-hdrc: setup fifo_mode 4 mu***-hdrc: 28/31 max ep, 16384/16384 memory USB Host mode controller at 47401800 using PIO, IRQ 0 Net: cpsw:0 is connected to cpsw. Reconnecting to cpsw cpsw, u***_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! |
|
|
|
|
|
Hi Sean: 若你也是用bbb或參考其硬體設計, 看你 log, 是開機 mmc 沒有抓取到正確位置, 你可以參考 " BB Black EMMC烧写全记录.pdf" 最後 3.總結和參考文檔, 有說明如何修改 mmc 位置 " |
|
|
|
|
冷冷萧魂丶芮 发表于 2018-6-1 20:32 Hi Hank, 感谢你这么快的回复,已经能从emmc启动,感谢。 |
|
|
|
|
冷冷萧魂丶芮 发表于 2018-6-1 20:32 你好, 我有一个疑问,我在U-BOOT里改成默认是从MMC1启动,在插上SD启动卡后是不是就不会从SD卡里启动了,因为我在内核添加的打印信息没有出来, 不是SD卡里的内核镜像文件,但是挂载的文件系统却是SD卡里面的,为什么会这样,有点不明白,希望你能为我答疑解惑 |
|
|
|
|
|
用官网release的debian img从SD烧写到flash(4G)时失败: copying: [/dev/mmcblk0] -> [/dev/mmcblk1] l***lk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 14.9G 0 disk |-mmcblk0p1 179:1 0 96M 0 part /boot/uboot `-mmcblk0p2 179:2 0 3.5G 0 part / ----------------------------- df -h | grep rootfs: df: cannot read table of mounted file systems: No such file or directory ----------------------------- Error: [/dev/mmcblk1] does not exist writing to [/dev/mmcblk1] failed... [ 6.781693] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 [ 6.781693] [ 6.796160] [ [ 6.807215] [ [ 6.817759] [ UBuntu都可以烧写成功,eMMC应该没坏,也是4G的,可能会是什么原因? |
|
|
|
|
|
|
|
|
|
|
|
检查uniflash版本,V3版本,其它的坑爹。另外看下安装目录下的第三方软件,查看opendhcp(好像是)的log文件,里面网络连接方面的情况,如果是通信顺利,会有那些文件,类似uboot servered, rootfs servered...如果没有,表明网络通信根本不通,相应文件没当下来,更别说看串口输出了。 |
|
|
|
|
cmh25 发表于 2018-6-1 21:29 你好: 我的opendhcp的log如下,能帮我看看是什么问题吗? [07-Jul-15 09:58:57] Logging: All [07-Jul-15 09:58:57] DHCP Range: 192.168.2.2-192.168.2.254/255.255.255.0 [07-Jul-15 09:58:57] Open DHCP Server Version 1.59 Windows Build 1036 Starting... [07-Jul-15 09:58:57] Server Name: 2014-20140719FL [07-Jul-15 09:58:57] Detecting Static Interfaces.. [07-Jul-15 09:58:57] Lease Status URL: http://127.0.0.1:6789 [07-Jul-15 09:58:57] Listening On: 192.168.2.1 [07-Jul-15 09:59:01] BOOTPREQUEST for d0:5f:b8:fb:e8:b3 () from interface 192.168.2.1 received [07-Jul-15 09:59:44] BOOTPREQUEST for d0:5f:b8:fb:e8:b3 () from interface 192.168.2.1 received [07-Jul-15 09:59:44] BOOTP Host d0:5f:b8:fb:e8:b3 (Hostd05fb8fbe8b3) allotted 192.168.2.3 [07-Jul-15 09:59:47] BOOTPREQUEST for d0:5f:b8:fb:e8:b3 () from interface 192.168.2.1 received [07-Jul-15 09:59:47] BOOTP Host d0:5f:b8:fb:e8:b3 (Hostd05fb8fbe8b3) allotted 192.168.2.3 [07-Jul-15 10:24:37] Open DHCP Server Version 1.59 Windows Build 1036 Starting... [07-Jul-15 10:24:37] Logging: All [07-Jul-15 10:24:37] DHCP Range: 192.168.2.2-192.168.2.254/255.255.255.0 [07-Jul-15 10:24:37] Server Name: 2014-20140719FL [07-Jul-15 10:24:37] Detecting Static Interfaces.. [07-Jul-15 10:24:37] Lease Status URL: http://127.0.0.1:6789 [07-Jul-15 10:24:37] Listening On: 192.168.2.1 [07-Jul-15 10:27:51] Network changed, re-detecting Static Interfaces.. [07-Jul-15 10:27:51] Warning: Section [LISTEN_ON], Interface 192.168.2.1 not available, ignored [07-Jul-15 10:27:51] No Static Interface ready, Waiting... [07-Jul-15 10:27:51] Retrying failed Listening Interfaces.. [07-Jul-15 10:27:51] Warning: Section [LISTEN_ON], Interface 192.168.2.1 not available, ignored [07-Jul-15 10:27:51] No Static Interface ready, Waiting... [07-Jul-15 10:27:51] Retrying failed Listening Interfaces.. [07-Jul-15 10:27:51] Warning: Section [LISTEN_ON], Interface 192.168.2.1 not available, ignored [07-Jul-15 10:27:51] No Static Interface ready, Waiting... [07-Jul-15 10:27:51] Retrying failed Listening Interfaces.. [07-Jul-15 10:27:51] Warning: Section [LISTEN_ON], Interface 192.168.2.1 not available, ignored [07-Jul-15 10:27:51] No Static Interface ready, Waiting... [07-Jul-15 10:27:51] Retrying failed Listening Interfaces.. [07-Jul-15 10:27:51] Warning: Section [LISTEN_ON], Interface 192.168.2.1 not available, ignored [07-Jul-15 10:27:51] No Static Interface ready, Waiting... [07-Jul-15 10:27:51] Retrying failed Listening Interfaces.. [07-Jul-15 10:27:51] Warning: Section [LISTEN_ON], Interface 192.168.2.1 not available, ignored [07-Jul-15 10:27:51] No Static Interface ready, Waiting... [07-Jul-15 10:27:51] Retrying failed Listening Interfaces.. [07-Jul-15 10:27:51] Warning: Section [LISTEN_ON], Interface 192.168.2.1 not available, ignored [07-Jul-15 10:27:51] No Static Interface ready, Waiting... [07-Jul-15 10:27:51] Retrying failed Listening Interfaces.. [07-Jul-15 10:27:51] Warning: Section [LISTEN_ON], Interface 192.168.2.1 not available, ignored [07-Jul-15 10:27:51] No Static Interface ready, Waiting... [07-Jul-15 10:27:51] Closing Network Connections... [07-Jul-15 10:27:51] Open DHCP Server Stopped ! 而且am335x的UART0接的USB TO UART 也一点东西都没有输出,am335x的UART0需要做什么配置吗? |
|
|
|
|
|
opentftp的log如下: [07-Jul-15 15:14:43] Open TFTP Server MultiThreaded Version 1.64 Windows Built 2001 Starting.. [07-Jul-15 15:14:43] starting TFTP service [07-Jul-15 15:14:43] alias / is mapped to C:AM335x_Flashtoolimages [07-Jul-15 15:14:43] permitted clients: all [07-Jul-15 15:14:43] server port range: all [07-Jul-15 15:14:43] max blksize: 65464 [07-Jul-15 15:14:43] default blksize: 512 [07-Jul-15 15:14:43] default timeout: 3 [07-Jul-15 15:14:43] file read allowed: Yes [07-Jul-15 15:14:43] file create allowed: No [07-Jul-15 15:14:43] file overwrite allowed: No [07-Jul-15 15:14:43] thread pool size: 1 [07-Jul-15 15:14:43] Listening On: 192.168.2.1:69 [07-Jul-15 15:14:48] Client 192.168.2.3:1234 C:AM335x_Flashtoolimagesu-boot-spl-restore.bin, 208 Blocks Served 每次都是到这里就卡住了,这是为什么啊? |
|
|
|
|
xujun621 发表于 2018-6-1 22:05 貌似pc端没什么问题,相应的文件有送出,只是开发板没有执行。用uart串口看调试信息,如果没有如何输出,只有“CCCCCC...”,基本上就是spl有问题了。按照楼主文档制作spl。或者你试下附件里的spl,直至log文件里挨个顺序有所需文件servered。 开发板上USB-to-serial,一开始不能用,我也没用过。就uart了(用的FTDI232转,淘宝上有),115200,flowcontrol-no。 另外,至于烧写各种文件,完全取决于debrick脚本。如果新添了功能需要kernel支持,flasher的kernel就得重新编译。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
550 浏览 0 评论
1613 浏览 0 评论
2047 浏览 0 评论
为啥BQ7693003DBTR芯片在和BQ769X0盒子通讯时收不到信号?
1514 浏览 0 评论
DSP 28027F 开发板 XDS100v2调试探针诊断日志显示了 Error -150 (SC_ERR_FTDI_FAIL)如何解决
1338 浏览 0 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
1758浏览 29评论
2785浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
1725浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
1635浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
1646浏览 13评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 19:12 , Processed in 1.041352 second(s), Total 80, Slave 73 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4316