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.

AM335x Beaglebone Black eMMC烧写记录

Other Parts Discussed in Thread: UNIFLASH, TPS65910, TPS65217, FLASHTOOL, AM3358

大家好,

最近在AM335x BeagleBone Black 上完整验证了下eMMC的烧写,总结了一篇文档共享出来,欢迎拍砖。

附件是文档中所描述的debrick.sh,烧写用的文件系统在后面的跟帖,这篇帖子可以和“AM335x Flash Tool -- UniFlash 烧写工具使用简介及问题解决方案汇总”互为参考。

 

 

debrick.sh
  • 您好 , 我使用BBB SDK 2.0 eMMC 燒錄 後發現重開機一直只能夠停在下列的階段...重複開關機次都一樣...請問有甚麼方式解決或是清除可以讓我重新再燒錄?謝謝!

    U-Boot SPL 2013.01.01 (Sep 01 2016 - 00:31:54)
    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

    有時候會會出現下列訊息 :

    U-Boot SPL 2013.01.01 (Sep 01 2016 - 00:31:54)
    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

  • 利用SD Card開機後再進行電源重置就又恢復ROM CODE 狀態了...又可以進行燒錄了...但我還沒完全成功..努力嘗試中...

  • Hi Jian工 您好~

    請問我燒錄完後都會出現下列訊息,似乎是敘述空間不夠需要刪掉程序...等等

    下列是Log & uniflash & debrick 內容 :

    [eMMC 燒錄訊息] :

    CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
    U-Boot SPL 2013.01.01 (Oct 21 2014 - 14:08:51)
    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 1c:ba:8c:96:0d:6a
    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
    Using usb_ether device
    TFTP from server 192.168.100.1; our IP address is 192.168.100.2
    Filename 'u-boot-restore.img'.
    Load address: 0x807fffc0
    Loading: #########################
    873 KiB/s
    done
    Bytes transferred = 365104 (59230 hex)


    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 1c:ba:8c:96:0d:6a
    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.100.2
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC 1c:ba:8c:96:0d:6a
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
    USB RNDIS network up!
    Using usb_ether device
    TFTP from server 192.168.100.1; our IP address is 192.168.100.2
    Filename 'uImage'.
    Load address: 0x81000000
    Loading: T #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    ######################################################
    1.4 MiB/s
    done
    Bytes transferred = 12228888 (ba9918 hex)
    ## Booting kernel from Legacy Image at 81000000 ...
    Image Name: Linux-3.2.0
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 12228824 Bytes = 11.7 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 3.2.0 (matthew@matthew-ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #2 Fri Apr 10 11:53:58 EDT 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: root=/dev/mmcblk0p2 rootwait console=ttyO0,115200
    [ 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: 499160k/499160k available, 25128k 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 - 0xc04ee000 (5016 kB)
    [ 0.000000] .init : 0xc04ee000 - 0xc138d000 (14972 kB)
    [ 0.000000] .data : 0xc138e000 - 0xc13ed0a8 ( 381 kB)
    [ 0.000000] .bss : 0xc13ed0cc - 0xc141b344 ( 185 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.000091] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [ 0.088836] pid_max: default: 32768 minimum: 301
    [ 0.088928] Security Framework initialized
    [ 0.089019] Mount-cache hash table entries: 512
    [ 0.089324] CPU: Testing write buffer coherency: ok
    [ 0.108612] omap_hwmod: pruss: failed to hardreset
    [ 0.109527] print_constraints: dummy:
    [ 0.109802] NET: Registered protocol family 16
    [ 0.111450] OMAP GPIO hardware version 0.1
    [ 0.113403] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.114868] omap_i2c.1: alias fck already exists
    [ 0.115539] omap2_mcspi.1: alias fck already exists
    [ 0.115692] omap2_mcspi.2: alias fck already exists
    [ 0.116394] edma.0: alias fck already exists
    [ 0.116394] edma.0: alias fck already exists
    [ 0.116424] edma.0: alias fck already exists
    [ 0.131195] bio: create slab <bio-0> at 0
    [ 0.132812] SCSI subsystem initialized
    [ 0.134063] usbcore: registered new interface driver usbfs
    [ 0.134277] usbcore: registered new interface driver hub
    [ 0.134429] usbcore: registered new device driver usb
    [ 0.134674] registerd cppi-dma Intr @ IRQ 17
    [ 0.134704] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
    [ 0.134704] Cppi41 Init Done
    [ 0.134704] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [ 0.134948] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [ 0.135772] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [ 0.136840] tps65910 1-002d: could not be detected
    [ 0.138549] Switching to clocksource gp timer
    [ 0.150054] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [ 0.150207] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [ 0.150451] MUSB0 controller's USBSS revision = 4ea20800
    [ 0.150482] musb0: Enabled SW babble control
    [ 0.151214] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
    [ 0.151336] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [ 0.151580] MUSB1 controller's USBSS revision = 4ea20800
    [ 0.151580] musb1: Enabled SW babble control
    [ 0.151916] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 0.151977] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 0.152099] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 0.152099] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 0.152099] usb usb1: Product: MUSB HDRC host driver
    [ 0.152130] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [ 0.152130] usb usb1: SerialNumber: musb-hdrc.1
    [ 0.152770] hub 1-0:1.0: USB hub found
    [ 0.152801] hub 1-0:1.0: 1 port detected
    [ 0.153228] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
    [ 0.153564] NET: Registered protocol family 2
    [ 0.153717] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.153961] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.154174] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.154296] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.154296] TCP reno registered
    [ 0.154327] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.154327] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.154479] NET: Registered protocol family 1
    [ 0.154663] RPC: Registered named UNIX socket transport module.
    [ 0.154693] RPC: Registered udp transport module.
    [ 0.154693] RPC: Registered tcp transport module.
    [ 0.154693] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.238922] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.255798] VFS: Disk quotas dquot_6.5.2
    [ 0.255859] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.256317] msgmni has been set to 974
    [ 0.258758] alg: No test for stdrng (krng)
    [ 0.259307] io scheduler noop registered
    [ 0.259338] io scheduler deadline registered
    [ 0.259399] io scheduler cfq registered (default)
    [ 0.260345] Could not set LED4 to fully on
    [ 0.299499] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [ 0.871337] console [ttyO0] enabled
    [ 0.875366] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [ 0.883087] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [ 0.890777] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [ 0.898437] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [ 0.906127] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [ 0.914184] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [ 0.928070] brd: module loaded
    [ 0.935028] loop: module loaded
    [ 0.938446] i2c-core: driver [tsl2550] using legacy suspend method
    [ 0.944946] i2c-core: driver [tsl2550] using legacy resume method
    [ 0.951385] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 1.049224] No daughter card found
    [ 1.052795] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 1.067993] Board name: A335BNLT
    [ 1.071380] Board version: 000C
    [ 1.074645] The board is a AM335x Beaglebone Black.
    [ 1.081817] tps65217 1-0024: TPS65217 ID 0xe version 1.2
    [ 1.089355] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
    [ 1.097747] print_constraints: DCDC2: 900 <--> 3300 mV at 1325 mV
    [ 1.106140] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
    [ 1.114532] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
    [ 1.122924] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
    [ 1.131195] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
    [ 1.139587] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
    [ 1.146545] Maximum current provided by the USB port is 500mA which is not sufficient
    [ 1.146545] when operating @OPP120 and OPPTURBO. The current requirement for some
    [ 1.146545] use-cases using OPP100 might also exceed the maximum current that the
    [ 1.146575] USB port can provide. Unless you are fully confident that the current
    [ 1.146575] requirements for OPP100 use-case don't exceed the USB limits, switching
    [ 1.146575] to AC power is recommended.
    [ 1.190551] omap_hsmmc.0: alias fck already exists
    [ 1.195953] omap_hsmmc.1: alias fck already exists
    [ 1.201324] omap_i2c.3: alias fck already exists
    [ 1.206512] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
    [ 1.213989] registered am33xx_sr device
    [ 1.219543] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.226562] omap2-nand driver initializing
    [ 1.231018] OneNAND driver initializing
    [ 1.235961] CAN device driver interface
    [ 1.240020] CAN bus driver for Bosch D_CAN controller 1.0
    [ 1.245941] usbcore: registered new interface driver cdc_ether
    [ 1.252166] usbcore: registered new interface driver cdc_eem
    [ 1.258178] usbcore: registered new interface driver dm9601
    [ 1.264038] cdc_ncm: 04-Aug-2011
    [ 1.267547] usbcore: registered new interface driver cdc_ncm
    [ 1.273468] Initializing USB Mass Storage driver...
    [ 1.278747] usbcore: registered new interface driver usb-storage
    [ 1.285034] USB Mass Storage support registered.
    [ 1.289916] gadget: using random self ethernet address
    [ 1.295379] gadget: using random host ethernet address
    [ 1.301330] usb0: MAC f6:78:5c:fc:60:b4
    [ 1.305328] usb0: HOST MAC 4a:0f:cd:66:2c:b2
    [ 1.309875] gadget: Ethernet Gadget, version: Memorial Day 2008
    [ 1.316162] gadget: g_ether ready
    [ 1.319732] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [ 1.325347] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [ 1.333190] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [ 1.340301] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 1.347839] usb usb2: Product: MUSB HDRC host driver
    [ 1.353027] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
    [ 1.358581] usb usb2: SerialNumber: musb-hdrc.0
    [ 1.363983] hub 2-0:1.0: USB hub found
    [ 1.367919] hub 2-0:1.0: 1 port detected
    [ 1.372863] mousedev: PS/2 mouse device common for all mice
    [ 1.379638] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [ 1.386657] am33xx-rtc: already running
    [ 1.390869] i2c /dev entries driver
    [ 1.670013] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.677581] cpuidle: using governor ladder
    [ 1.681884] gadget: high-speed config #2: RNDIS
    [ 1.687225] cpuidle: using governor menu
    [ 1.694793] omap4_aes_mod_init: loading AM33X AES driver
    [ 1.700469] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [ 1.706878] omap4_aes_probe: probe() done
    [ 1.711486] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [ 1.717681] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [ 1.747558] omap4_sham_probe: probe() done
    [ 1.752502] oprofile: hardware counters not available
    [ 1.757812] oprofile: using timer interrupt.
    [ 1.762359] nf_conntrack version 0.5.0 (7799 buckets, 31196 max)
    [ 1.769104] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 1.774810] TCP cubic registered
    [ 1.778198] NET: Registered protocol family 17
    [ 1.782897] can: controller area network core (rev 20090105 abi 8)
    [ 1.789459] NET: Registered protocol family 29
    [ 1.794097] can: raw protocol (rev 20090105)
    [ 1.798583] can: broadcast manager protocol (rev 20090105 t)
    [ 1.804534] Registering the dns_resolver key type
    [ 1.809539] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 1.817596] ThumbEE CPU extension supported.
    [ 1.822143] mux: Failed to setup hwmod io irq -22
    [ 1.827636] Power Management for AM33XX family
    [ 1.832519] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [ 1.839263] Copied the M3 firmware to UMEM
    [ 1.843627] Cortex M3 Firmware Version = 0x181
    [ 1.849121] create_regulator: DCDC2: Failed to create debugfs directory
    [ 1.856719] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
    [ 1.867797] clock: disabling unused clocks to save power
    [ 1.880035] mmc1: new high speed MMC card at address 0001
    [ 1.888702] mmcblk0: mmc1:0001 MMC04G 3.60 GiB
    [ 1.893829] mmcblk0boot0: mmc1:0001 MMC04G partition 1 2.00 MiB
    [ 1.903472] mmcblk0boot1: mmc1:0001 MMC04G partition 2 2.00 MiB
    [ 1.914276] mmcblk0: unknown partition table
    [ 1.924163] mmcblk0boot1: unknown partition table
    [ 1.934143] mmcblk0boot0: unknown partition table
    [ 2.228240] omap_rtc am33xx-rtc: setting system clock to 2014-02-17 19:23:33 UTC (1392665013)
    [ 2.255279] Freeing init memory: 14972K
    INIT: version 2.88 booting
    Starting udev
    [ 4.197204] EXT3-fs (mmcblk0): error: can't find ext3 filesystem on dev mmcblk0.
    [ 4.205596] EXT2-fs (mmcblk0): error: can't find an ext2 filesystem on dev mmcblk0.
    [ 4.214111] FAT-fs (mmcblk0): bogus number of reserved sectors
    [ 4.220214] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
    [ 4.240173] cramfs: wrong magic
    [ 4.244049] FAT-fs (mmcblk0): bogus number of reserved sectors
    [ 4.250183] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
    [ 4.523223] EXT3-fs (mmcblk0boot1): error: can't find ext3 filesystem on dev mmcblk0boot1.
    [ 4.533782] EXT2-fs (mmcblk0boot1): error: can't find an ext2 filesystem on dev mmcblk0boot1.
    [ 4.543823] FAT-fs (mmcblk0boot1): invalid media value (0x63)
    [ 4.549896] FAT-fs (mmcblk0boot1): Can't find a valid FAT filesystem
    [ 4.570007] EXT3-fs (mmcblk0boot0): error: can't find ext3 filesystem on dev mmcblk0boot0.
    [ 4.584381] EXT2-fs (mmcblk0boot0): error: can't find an ext2 filesystem on dev mmcblk0boot0.
    [ 4.594329] FAT-fs (mmcblk0boot0): bogus number of reserved sectors
    [ 4.600921] FAT-fs (mmcblk0boot0): Can't find a valid FAT filesystem
    [ 4.613067] cramfs: wrong magic
    [ 4.620727] FAT-fs (mmcblk0boot1): invalid media value (0x63)
    [ 4.626770] FAT-fs (mmcblk0boot1): Can't find a valid FAT filesystem
    [ 4.640991] cramfs: wrong magic
    [ 4.647369] FAT-fs (mmcblk0boot0): bogus number of reserved sectors
    [ 4.654022] FAT-fs (mmcblk0boot0): Can't find a valid FAT filesystem
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
    done.
    Collected errors:
    INIT: Entering runlevel: 5ot create lock file /var/lib/opkg/lock: No such fil
    Starting syslogd/klogd: done
    ****************************************************
    ****************************************************

    Sitara Flash Fetcher Script - 07/28/2014

    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    Sending select for 192.168.100.22...
    Lease of 192.168.100.22 obtained, lease time 600
    Getting flasher script from server: 192.168.100.1

    ********************************************
    Sitara Flash Fetcher is complete. Executing debrick.sh.

    Calling Script=debrick.sh with SERVER_IP=192.168.100.1
    ****************************************************
    ****************************************************

    Sitara Example Flashing Script - 02/11/2014

    Getting files from server: 192.168.100.1
    1+0 records in
    1+0 records out
    BusyBox v1.20.2 (2014-02-17 12:53:20 CST) multi-call binary.

    Usage: tftp [OPTIONS] HOST [PORT]

    Command exited with non-zero status 1
    real 0m 0.03s
    user 0m 0.00s
    sys 0m 0.00s
    No partition found. Continuing.
    Partitioning the eMMC...
    Checking that no-one is using th[ 12.145385] mmcblk0: unknown partition table
    is disk right now ...
    OK

    [ 12.157867] mmcblk0: p1 p2rs, 255 heads, 63 sectors/track


    sfdisk: ERROR: sector 0 does not have an msdos signature
    sfdisk: /dev/mmcblk0: 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/mmcblk0p1 * 0+ 8 9- 72261 c W95 FAT32 (LBA)
    /dev/mmcblk0p2 10 469 460 3694950 83 Linux
    /dev/mmcblk0p3 0 - 0 0 0 Empty
    /dev/mmcblk0p4 0 - 0 0 0 Empty
    Successfully wrote the new partition table

    Re-reading the partition table ...

    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).)
    [ 13.124206] EXT3-fs (mmcblk0p1): error: can't find ext3 filesystem on dev mmcblk0p1.
    [ 13.134887] EXT3-fs (mmcblk0p2): error: can't find ext3 filesystem on dev mmcblk0p2.
    [ 13.144927] EXT2-fs (mmcblk0p1): error: can't find an ext2 filesystem on dev mmcblk0p1.
    [ 13.155273] EXT2-fs (mmcblk0p2): error: can't find an ext2 filesystem on dev mmcblk0p2.
    [ 13.166168] FAT-fs (mmcblk0p1): bogus number of reserved sectors
    [ 13.172546] FAT-fs (mmcblk0p1): Can't find a valid FAT filesystem
    [ 13.182067] FAT-fs (mmcblk0p2): bogus number of reserved sectors
    [ 13.188476] FAT-fs (mmcblk0p2): Can't find a valid FAT filesystem
    real 0m 1.38s
    user 0m 0.01s
    sys 0m 0.27s
    [ 13.287139] cramfs: wrong magic
    [ 13.294219] FAT-fs (mmcblk0p1): bogus number of reserved sectors
    [ 13.300628] FAT-fs (mmcblk0p1): Can't find a valid FAT filesystem
    [ 13.317962] cramfs: wrong magic
    [ 13.325073] FAT-fs (mmcblk0p2): bogus number of reserved sectors
    [ 13.331420] FAT-fs (mmcblk0p2): Can't find a valid FAT filesystem
    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)
    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.
    [ 30.076599] kjournald starting. Commit interval 5 seconds
    [ 30.085540] EXT3-fs (mmcblk0p2): using internal journal
    [ 30.091094] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    Copying Files...
    real 0m 1.08s
    user 0m 0.46s
    sys 0m 0.40s
    Boot partition done.
    tar: no gzip/bzip2 magic
    Command exited with non-zero status 1
    real 0m 0.00s
    user 0m 0.00s
    sys 0m 0.00s
    tar: can't open '-C': No such file or directory
    Command exited with non-zero status 1
    real 0m 0.00s
    user 0m 0.00s
    sys 0m 0.00s
    RootFS partition done.
    It took 20 seconds to complete this task...

    ********************************************
    Sitara Example Flash Script is complete.

    Stopping Bootlog daemon: bootlogd.

    _____ _____ _ _
    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project http://arago-project.org am335x-evm ttyO0

    Arago 2013.05 am335x-evm ttyO0

    am335x-evm login: [ 78.645782] tftp invoked oom-killer: gfp_mask=0x200d2, order=0, oom_adj=0, oom_score_adj=0
    [ 78.654510] Backtrace:
    [ 78.657104] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c039e638>] (dump_stack+0x18/0x1c)
    [ 78.665924] r6:000200d2 r5:00000000 r4:ddd09280 r3:c13b13e8
    [ 78.671875] [<c039e620>] (dump_stack+0x0/0x1c) from [<c007d29c>] (dump_header.isra.14+0x54/0x150)
    [ 78.681182] [<c007d248>] (dump_header.isra.14+0x0/0x150) from [<c007d5ac>] (oom_kill_process.constprop.19+0x70/0x22c)
    [ 78.692291] r8:ddea1cc0 r7:00000001 r6:000200d2 r5:00000000 r4:ddea1cc0
    [ 78.699310] [<c007d53c>] (oom_kill_process.constprop.19+0x0/0x22c) from [<c007daf4>] (out_of_memory+0x23c/0x2d0)
    [ 78.709960] [<c007d8b8>] (out_of_memory+0x0/0x2d0) from [<c00809c4>] (__alloc_pages_nodemask+0x640/0x664)
    [ 78.719970] [<c0080384>] (__alloc_pages_nodemask+0x0/0x664) from [<c007b0c4>] (grab_cache_page_write_begin+0x54/0xc0)
    [ 78.731079] [<c007b070>] (grab_cache_page_write_begin+0x0/0xc0) from [<c00c4b94>] (simple_write_begin+0x28/0x108)
    [ 78.741821] [<c00c4b6c>] (simple_write_begin+0x0/0x108) from [<c0079f8c>] (generic_file_buffered_write+0x1a8/0x26c)
    [ 78.752746] [<c0079de4>] (generic_file_buffered_write+0x0/0x26c) from [<c007ba98>] (__generic_file_aio_write+0x244/0x478)
    [ 78.764221] [<c007b854>] (__generic_file_aio_write+0x0/0x478) from [<c007bd30>] (generic_file_aio_write+0x64/0xd0)
    [ 78.775054] [<c007bccc>] (generic_file_aio_write+0x0/0xd0) from [<c00a602c>] (do_sync_write+0xac/0xec)
    [ 78.784820] [<c00a5f80>] (do_sync_write+0x0/0xec) from [<c00a67a8>] (vfs_write+0xa4/0x148)
    [ 78.793457] [<c00a6704>] (vfs_write+0x0/0x148) from [<c00a6a48>] (sys_write+0x40/0x78)
    [ 78.801727] r8:00001000 r7:0009702c r6:c0820140 r5:00000000 r4:1da33000
    [ 78.808776] [<c00a6a08>] (sys_write+0x0/0x78) from [<c0014740>] (ret_fast_syscall+0x0/0x30)
    [ 78.817504] r8:c00148e8 r7:00000004 r6:00000004 r5:0009702c r4:00001000
    [ 78.824554] Mem-info:
    [ 78.826904] Normal per-cpu:
    [ 78.829833] CPU 0: hi: 186, btch: 31 usd: 138
    [ 78.834838] active_anon:324 inactive_anon:36 isolated_anon:0
    [ 78.834838] active_file:897 inactive_file:0 isolated_file:0
    [ 78.834838] unevictable:124715 dirty:0 writeback:0 unstable:0
    [ 78.834869] free:702 slab_reclaimable:581 slab_unreclaimable:719
    [ 78.834869] mapped:202 shmem:49 pagetables:43 bounce:0
    [ 78.864593] Normal free:2808kB min:2884kB low:3604kB high:4324kB active_anon:1296kB inactive_anon:144kB active_file:3588kB inactive_file:0kB unevictable:498860kB isolated(anon):0kB isolated(file):0kB present:520192kB mlocked:0kB dirty:0kB writeback:0kB mapped:808kB shmem:196kB slab_reclaimable:2324kB slab_unreclaimable:2876kB kernel_stack:368kB pagetables:172kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:124715 all_unreclaimable? yes
    [ 78.905853] lowmem_reserve[]: 0 0
    [ 78.909332] Normal: 0*4kB 1*8kB 1*16kB 1*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB 0*8192kB = 2808kB
    [ 78.920837] 125661 total pagecache pages
    [ 78.924926] 0 pages in swap cache
    [ 78.928405] Swap cache stats: add 0, delete 0, find 0/0
    [ 78.933868] Free swap = 0kB
    [ 78.936859] Total swap = 0kB
    [ 78.957305] 131072 pages of RAM
    [ 78.960632] 936 free pages
    [ 78.963470] 2539 reserved pages
    [ 78.966766] 1300 slab pages
    [ 78.969665] 1193 pages shared
    [ 78.972778] 0 pages swap cached
    [ 78.976074] [ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name
    [ 78.983886] [ 763] 0 763 444 178 0 -17 -1000 udevd
    [ 78.991729] [ 941] 0 941 470 196 0 -17 -1000 udevd
    [ 78.999572] [ 955] 0 955 443 190 0 -17 -1000 udevd
    [ 79.007446] [ 1277] 0 1277 457 139 0 0 0 syslogd
    [ 79.015472] [ 1280] 0 1280 457 133 0 0 0 klogd
    [ 79.023345] [ 1297] 0 1297 457 58 0 0 0 udhcpc
    [ 79.031311] [ 1304] 0 1304 424 98 0 0 0 time
    [ 79.039062] [ 1309] 0 1309 457 130 0 0 0 tftp
    [ 79.046813] [ 1422] 0 1422 393 124 0 0 0 getty
    [ 79.054687] [ 1423] 0 1423 393 124 0 0 0 getty
    [ 79.062561] Out of memory: Kill process 1277 (syslogd) score 1 or sacrifice child
    [ 79.070404] Killed process 1277 (syslogd) total-vm:1828kB, anon-rss:60kB, file-rss:496kB
    [ 79.176849] tftp invoked oom-killer: gfp_mask=0x200d2, order=0, oom_adj=0, oom_score_adj=0
    [ 79.185546] Backtrace:
    [ 79.188140] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c039e638>] (dump_stack+0x18/0x1c)
    [ 79.196960] r6:000200d2 r5:00000000 r4:ddd09280 r3:c13b13e8
    [ 79.202911] [<c039e620>] (dump_stack+0x0/0x1c) from [<c007d29c>] (dump_header.isra.14+0x54/0x150)
    [ 79.212188] [<c007d248>] (dump_header.isra.14+0x0/0x150) from [<c007d5ac>] (oom_kill_process.constprop.19+0x70/0x22c)
    [ 79.223297] r8:c0843980 r7:00000001 r6:000200d2 r5:00000000 r4:c0843980
    [ 79.230316] [<c007d53c>] (oom_kill_process.constprop.19+0x0/0x22c) from [<c007daf4>] (out_of_memory+0x23c/0x2d0)
    [ 79.240997] [<c007d8b8>] (out_of_memory+0x0/0x2d0) from [<c00809c4>] (__alloc_pages_nodemask+0x640/0x664)
    [ 79.251007] [<c0080384>] (__alloc_pages_nodemask+0x0/0x664) from [<c007b0c4>] (grab_cache_page_write_begin+0x54/0xc0)
    [ 79.262207] [<c007b070>] (grab_cache_page_write_begin+0x0/0xc0) from [<c00c4b94>] (simple_write_begin+0x28/0x108)
    [ 79.272949] [<c00c4b6c>] (simple_write_begin+0x0/0x108) from [<c0079f8c>] (generic_file_buffered_write+0x1a8/0x26c)
    [ 79.283874] [<c0079de4>] (generic_file_buffered_write+0x0/0x26c) from [<c007ba98>] (__generic_file_aio_write+0x244/0x478)
    [ 79.295349] [<c007b854>] (__generic_file_aio_write+0x0/0x478) from [<c007bd30>] (generic_file_aio_write+0x64/0xd0)
    [ 79.306182] [<c007bccc>] (generic_file_aio_write+0x0/0xd0) from [<c00a602c>] (do_sync_write+0xac/0xec)
    [ 79.315917] [<c00a5f80>] (do_sync_write+0x0/0xec) from [<c00a67a8>] (vfs_write+0xa4/0x148)
    [ 79.324584] [<c00a6704>] (vfs_write+0x0/0x148) from [<c00a6a48>] (sys_write+0x40/0x78)
    [ 79.332855] r8:00001000 r7:0009702c r6:c0820140 r5:00000000 r4:1dad0000
    [ 79.339904] [<c00a6a08>] (sys_write+0x0/0x78) from [<c0014740>] (ret_fast_syscall+0x0/0x30)
    [ 79.348632] r8:c00148e8 r7:00000004 r6:00000004 r5:0009702c r4:00001000
    [ 79.355651] Mem-info:
    [ 79.358032] Normal per-cpu:
    [ 79.360961] CPU 0: hi: 186, btch: 31 usd: 113
    [ 79.366027] active_anon:309 inactive_anon:36 isolated_anon:0
    [ 79.366027] active_file:0 inactive_file:0 isolated_file:0
    [ 79.366027] unevictable:125769 dirty:0 writeback:0 unstable:0
    [ 79.366027] free:708 slab_reclaimable:468 slab_unreclaimable:719
    [ 79.366027] mapped:196 shmem:49 pagetables:39 bounce:0
    [ 79.395599] Normal free:2832kB min:2884kB low:3604kB high:4324kB active_anon:1236kB inactive_anon:144kB active_file:0kB inactive_file:0kB unevictable:503076kB isolated(anon):0kB isolated(file):0kB present:520192kB mlocked:0kB dirty:0kB writeback:0kB mapped:784kB shmem:196kB slab_reclaimable:1872kB slab_unreclaimable:2876kB kernel_stack:360kB pagetables:156kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:1054 all_unreclaimable? yes
    [ 79.436431] lowmem_reserve[]: 0 0
    [ 79.439910] Normal: 58*4kB 1*8kB 0*16kB 1*32kB 0*64kB 2*128kB 1*256kB 2*512kB 1*1024kB 0*2048kB 0*4096kB 0*8192kB = 2832kB
    [ 79.451507] 125818 total pagecache pages
    [ 79.455627] 0 pages in swap cache
    [ 79.459106] Swap cache stats: add 0, delete 0, find 0/0
    [ 79.464569] Free swap = 0kB
    [ 79.467559] Total swap = 0kB
    [ 79.487884] 131072 pages of RAM
    [ 79.491210] 913 free pages
    [ 79.494018] 2539 reserved pages
    [ 79.497314] 1187 slab pages
    [ 79.500213] 1070 pages shared
    [ 79.503326] 0 pages swap cached
    [ 79.506591] [ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name
    [ 79.514373] [ 763] 0 763 444 178 0 -17 -1000 udevd
    [ 79.522186] [ 941] 0 941

    到這邊就停住了....

    [Uniflash 狀態]

    [debrick.sh]

    echo "****************************************************"
    echo "****************************************************"
    echo ""
    echo "Sitara Example Flashing Script - 02/11/2014"
    echo ""

    STARTTIME=$(date +%s)

    ##---------Start of variables---------------------##

    ## Set Server IP here
    SERVER_IP="192.168.100.1"

    ## Names of the images to grab from TFTP server
    BOOT_PARTITION="boot_partition.tar.gz"

    ## Rename rootfs as needed depending on use of tar or img
    ROOTFS_PARTITION="rootfs_partition.tar.gz"

    ##ROOTFS_USR="usr.tar.gz"

    ## ROOTFS_PARTITION="rootfs_partition/"
    ## ROOTFS_PARTITION="rootfs_partition.img.gz"

    ## Declare eMMC device name here
    DRIVE="/dev/mmcblk0"


    ##----------End of variables-----------------------##

    ## TFTP files from host. Edit the files and host IP address for your application.
    ## We are grabbing two files, one an archive with files to populate a FAT partion,
    ## which we will create. Another for a filesystem image to 'dd' onto an unmounted partition.
    ## Using a compressed tarball can be easier to implement, however, with a large file system
    ## with a lot of small files, we recommend a 'dd' image of the partition to speed up writes.
    echo "Getting files from server: ${SERVER_IP}"
    time tftp -b 4096 -g -r ${BOOT_PARTITION} ${SERVER_IP} &
    boot_pid=$!
    time tftp -b 4096 -g -r ${ROOTFS_PARTITION} ${SERVER_IP} &
    rootfs_pid=$!
    time tftp -b 4096 -g -r ${ROOTFS_USR} ${SERVER_IP} &
    rootfs_pid=$!


    ## Kill any partition info that might be there
    dd if=/dev/zero of=$DRIVE bs=4k count=1
    sync
    sync

    ## Figure out how big the eMMC is in bytes
    SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`

    ## Translate size into segments, which traditional tools call Cylinders. eMMC is not a spinning disk.
    ## We are basically ignoring what FDISK and SFDISK are reporting because it is not really accurate.
    ## we are translating this info to something that makes more sense for eMMC.
    CYLINDERS=`echo $SIZE/255/63/512 | bc`

    ## Check to see if the eMMC partitions have automatically loaded from the old MBR.
    ## This might have occured during the boot process if the kernel detected a filesystem
    ## before we killed the MBR. We will need to unmount and kill them by writing 4k zeros to the
    ## partitions that were found.

    check_mounted(){
    is_mounted=$(grep ${DRIVE}p /proc/mounts | awk '{print $2}')

    if grep -q ${DRIVE}p /proc/mounts; then
    echo "Found mounted partition(s) on " ${DRIVE}": " $is_mounted
    umount $is_mounted
    counter=1
    for i in $is_mounted; do \
    echo "4k erase on ${DRIVE}p${counter}";
    dd if=/dev/zero of=${DRIVE}p${counter} bs=4k count=1;
    counter=$((counter+1));
    done
    else
    echo "No partition found. Continuing."
    fi
    }

    check_mounted;

    ## Partitioning the eMMC using information gathered.
    ## Here is where you can add/remove partitions.
    ## We are building 2 partitions:
    ## 1. FAT, size = 9 cylinders * 255 heads * 63 sectors * 512 bytes/sec = ~70MB
    ## 2. EXT3, size = 223 ($CYLINDERS-[9 for fat]) cylinders * 255 heads * 63 sectors * 512 bytes/sec = ~1l.7GB
    ##
    ## You will need to change the lines ",9,0c0C,*", "10,,,-" to suit your needs. Adding is similar,
    ## but you will need to be aware of partition sizes and boundaries. Use the man page for sfdisk.
    echo "Partitioning the eMMC..."
    sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE << EOF
    ,9,0x0C,*
    10,,,-
    EOF

    ## This sleep is necessary as there is a service which attempts
    ## to automount any filesystems that it finds as soon as sfdisk
    ## finishes partitioning. We sleep to let it run. May need to
    ## be lengthened if you have more partitions.
    sleep 2

    ## Check here if there has been a partition that automounted.
    ## This will eliminate the old partition that gets
    ## automatically found after the sfdisk command. It ONLY
    ## gets found if there was a previous file system on the same
    ## partition boundary. Happens when running this script more than once.
    ## To fix, we just unmount and write some zeros to it.
    check_mounted;

    ## Clean up the dos (FAT) partition as recommended by SFDISK
    dd if=/dev/zero of=${DRIVE}p1 bs=512 count=1

    ## Make sure posted writes are cleaned up
    sync
    sync

    ## Format the eMMC into 2 partitions
    echo "Formatting the eMMC into 2 partitions..."

    ## Format the boot partition to fat32
    mkfs.vfat -F 32 -n "boot" ${DRIVE}p1

    ## Format the rootfs to ext3 (or ext4, etc.) if using a tar file.
    ## We DO NOT need to format this partition if we are 'dd'ing an image
    ## Comment out this line if using 'dd' of an image.
    mkfs.ext3 -L "rootfs" ${DRIVE}p2

    ## Make sure posted writes are cleaned up
    sync
    sync
    echo "Formatting done."

    ## Make temp directories for mountpoints
    mkdir tmp_boot

    ## Comment this line out if using 'dd' of an image. It is not needed.
    mkdir tmp_rootfs

    ## Mount partitions for tarball extraction. NOT for 'dd'.
    mount -t vfat ${DRIVE}p1 tmp_boot

    ## If 'dd'ing the rootfs, there is no need to mount it. Comment out the below.
    mount -t ext3 ${DRIVE}p2 tmp_rootfs

    ## Wait for boot to finish tftp
    wait $boot_pid
    echo "Copying Files..."
    time tar -xf ${BOOT_PARTITION} -C tmp_boot
    sync
    sync
    umount ${DRIVE}p1
    rm ${BOOT_PARTITION}
    echo "Boot partition done."

    ## Wait for rootfs to finish tftp
    wait $rootfs_pid
    ## If using a tar archive, untar it with the below.
    ## If using 'dd' of an img, comment these lines out and use the below.
    #time tar -zxvf ${ROOTFS_PARTITION} -C
    time tar -xf ${ROOTFS_PARTITION} -C tmp_rootfs
    #time cp -r ${ROOTFS_PARTITION} tmp_rootfs
    sync
    sync
    time tar -xf ${ROOTFS_USR} -C tmp_rootfs
    sync
    sync

    umount ${DRIVE}p2
    rm ${ROOTFS_PARTITION}
    echo "RootFS partition done."
    ## If using 'dd' of an img, uncomment these lines.
    ## If using a tar archive, comment out these lines and use the above.
    ## time gunzip -c ${ROOTFS_PARTITION} | dd of=${DRIVE}p2 bs=4k
    ## sync
    ## sync
    ## echo "Rootfs partition done."

    ## The block below is only necessary if using 'dd'.
    ## Force check the filesystem for consistency and fix errors if any.
    ## Resize partition to the length specified by the MBR.
    ## /sbin/e2fsck -fy ${DRIVE}p2
    ## /sbin/resize2fs ${DRIVE}p2

    ENDTIME=$(date +%s)
    echo "It took $(($ENDTIME - $STARTTIME)) seconds to complete this task..."
    ## Reboot
    echo ""
    echo "********************************************"
    echo "Sitara Example Flash Script is complete."
    echo ""

    重新啟動後僅能進入UBOOT MODE :

    U-Boot SPL 2015.07-00114-gf5078ef-dirty (Feb 23 2016 - 18:30:35)
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img


    U-Boot 2015.07-00114-gf5078ef-dirty (Feb 23 2016 - 18:30:35 +0800)

    Watchdog enabled
    I2C: ready
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Card did not respond to voltage select!
    ** Bad device mmc 0 **
    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!
    Card did not respond to voltage select!
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    ** File not found /boot/zImage **
    Booting from nand ...

    no devices available

    no devices available
    Bad Linux ARM zImage magic!
    U-Boot#

    或是有相關建議的朋友可以給予建議與指導,非常感謝!!

  • 您好,閱讀了您的帖子,發現您用的SDK是06 版本,小弟目前用的是 Processor-SDk-02.00.00.00 ,可否告知哪些地方差異??非常感謝!!

    PS : 似乎2013 的SPL 才有 support 我的Am335x, SPL 2015 會出現 SPL: Unsupported Boot Device!

  • 請問我用自己SDK(Processor-02.00.00.00 - Kernel : 4.1.6 ; Beagle Bone Black)製作rootfs_partition.tar.gz (大小約1.2G),僅能燒錄到U-Boot,後面即產生 :

    Out Of Memory, oom-killer.....

    ..

    ..

    請問是因為我的RAM只有512MB(eMMC 4G),而要燒錄的檔案可能需要暫存空間不足造成的狀況嗎?所以需要修改哪邊能夠解決?非常感謝!!

  • 周工 你好 :

    我现在按照您提供的文档,用sdk6的代码可以usb烧录了,但我想移植到我自己的板子使用,用debrick.sh脚本将系统文件写入emmc后,烧录自己板子的uboot后卡在这里:

    U-Boot SPL 2011.09 (Jun 18 2014 - 09:38:14)
    ZHD-AM335x-Evaluation.
    boot mode - RAW
    mkimage signature not found - ih_magic = 0
    Assuming u-boot.bin ..

    我怀疑是不是烧写系统时偏移地址的问题,因为和我现在uboot的偏移地址不对应,因为uboot之前是别的同事移植的,我不熟悉这方面的烧写,我想问下:

    sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE << EOF
    7,9,0x0C,*
    10,,,-
    EOF

    这一段是什么含义,怎么使用sfdisk命令,怎么设置分区时的初始地址,我的emmc大小是16G,网上找不到sfdisk具体操作、、

    #define MLO_ADDR 0x20000
    #define MLO_SIZE (1024*100)
    #define UBOOT_ADDR 0x60000
    #define UBOOT_SIZE (1024*256)
    #define KERNEL_ADDR 0x100000
    #define KERNEL_SIZE (1024*1024*2.5)
    #define ROOTFS_ADDR 0x500000
    #define ROOTFS_SIZE (1024*1024*2.8)

    这个是我自己板子的uboot需要偏移的地址说明,按照这个我要怎么用sfdisk去调整参数分区,或者是还有没有其它方法命令可以去执行?

    有点急 ,麻烦大家了!!谢谢!!

  • 烧录的整个过程都是正确的么?你烧录的Linux应该不是TI的SDK吧?

  • Hi Jian工 您好~

    要烧写到EMMC中的 MLO,u-boot.img 和 uImage ,这个三个文件我现在是用prebuilt img 里面的,能把其中的uImage替换为自己编译的uImage吗?这个uImage能用自己编译出来烧写用的uImage 吗?这两个大小差的有点多,一个才2M多,编译出来的8M左右。

  • 您好 我想将BeagleBone的内核替换成自己编译的 但是我直接替换内核设备树以及模块之后 启动不成功 而且BeagleBoneBlack上有两个boot分区 怎么抹掉
  • jian zhou 你好 我使用的是sdk6.0版本的 按照您这个文档做的emmc烧写,现在遇见一个 问题,在uniflash下载软件中的 进度条进行到27%的时候就不能运行了

    下面是我串口接收到的数据

    1805.串口数据.txt

  • 你好 我现在也遇见了这个问题,请问你是怎么解决的呢,能指点下么?
    期待回复
  • 这个文档我看了,在官网下载了PROCESSOR-SDK-LINUX-AM335X 02_00_02_11本地sdk,根据 processors.wiki.ti.com/.../Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black文档编译sdk,其中有几个patch不能下载,能提供下吗?
    0001-Change-finduuid-to-use-mmcdev.patch.gz和sitara_flasher_initramfs_rev_1.0.tar.gz不能下载,另外,这个文档的内核是4.1.6,而我下载的是4.1.18的,有区别吗?

    通过make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=flasher_usb am335x_evm_usbspl_defconfig all编译生成的u-boot-spl-restore.bin和u-boot-restore.img,用工具 UniFlash 烧写时u-boot-spl-restore.bin烧写进去后,提示:
    U-Boot SPL 2015.07-00063-gda2d8cb (Sep 19 2018 - 13:59:33)
    Using default environment

    usb_ether
    Error: usb_ether address not set.

    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC 98:5d:ad:cb:68:a1
    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

    是哪里有问题?
  • 你的内核应该没有挂载上或者是识别eMMC,所以SD卡里的debrick.sh并不能找到mmcblk1,就不能给eMMC分区了。

  • 1,按照此贴的方法,没成功,能连上,可是进度一直是0%,串口一直CCCCCC,2,本贴主要是烧录到emmc上,其实是beagleboard.org有脚本从sd卡烧录镜像到emmc,起码beagleboard.org上的镜像是可以的elinux.org/Beagleboard:BeagleBoneBlack_Debian
  • 能不能直接从usb(U盘)启动,不要烧录到emmc,