Hummingbird A20 Development Board brush cubietruck SD card firmware

Source: Internet
Author: User
The merriilinux function prepared by Mei Rui video for the hummingbird A20 is very simple. Therefore, using the mainstream Debian or lubuntu is a very urgent requirement. The hummingbird A20 (merrii hummingbird A20) is very close to cubietruck in terms of hardware configuration, the same full log A20, the same Gigabit PHY chip rt8211e, and the same WiFi Bluetooth Chip ap6210. But the memory and flash memory are smaller than cubietruck. Preparation: 1. Compile uboot for hummingbird (mainly to activate the NIC)
Git clone https://github.com/boytm/u-boot-sunxi.git # I have submitted the merge request, after successful direct copy master branch https://github.com/linux-sunxi/u-boot-sunxi.gitmake merrii_hummingbird_a20_config cross_compile = arm-Linux-gnueabihf-make cross_compile = arm-Linux-gnueabihf-
After compilation is complete, SPL/sunxi-spl.bin is generated, the u-boot.img is integrated with both. Here is a brief introduction of the uboot and SD card partitions.
sector start size   0      0   8KB Unused, available for partition table etc.  16      8  32KB Initial SPL loader   80     40 504KB u-boot  (sector 64 / 32KB for 2013.07 and earlier)1088    544 128KB environment1344    672 128KB Falcon mode boot params1600    800  ---- Falcon mode kernel start2048   1024     - Free for partitions (higher if using Falcon boot)
Free for partitions are generally boot partitions and rootfs partitions (the size depends on the release version). The two partitions can be viewed in the Partition Table, which is a normal partition.
2. download the SD card image ct-lubuntu-card-v2.0 for cubietruck and unzip the address: http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/ct-lubuntu-card-v2.0/server/tsd/ct-lubuntu-server-tsd-tfcard-v2.0.img.gz 3. steps for extracting the hardware configuration file from hummingbird A20: 1. determine the name of the SD card device. If it is a USB flash drive, it is/dev/SD [ABCD] and so on.
card=/dev/mmcblk0
2. fl the SD card image ct-lubuntu-card-v2.0 to the SD card
dd if=ct-lubuntu-server-tsd-tfcard-v2.0.img of=${card}
3. Replace the uboot area in the SD card ( Initial SPL loaderFirst, before free partition) for self-compiled uboot
card=/dev/mmcblk0dd if=u-boot-sunxi-with-spl.bin of=${card} bs=1024 seek=8
4. Now we can see that the SD card is divided into two areas. You can see two partitions through fdisk-L. Here are mmcblk0p1 and mmcblk0p2. Note: The startup parameters of the current image are a bit problematic. You need to mount the first boot partition of SD-card, modify the startup parameters (2nd SD cards are incorrectly set)
mount ${card}p1 /mntvi /mnt/uEnv.txt
Change the root value from mmcblk1p2 to mmcblk0p2.
Root =/dev/mmcblk0p2
umount ${card}p1

 

Note: I have also tried to upgrade the NAND version of cubietruck to the NAND version, but the NIC cannot be started. I will replace the script in time. bin (although the 3G node has a gmac_pwr description) cannot be started. [Email protected]: ~ # Ifconfig eth0 up
<6> sunxi_gmac: probed
<4> eth0: No PHY found, but wlan0 can be started normally. Run iwlist scan to scan the WiFi list. However, after the script. Bin is replaced, WiFi does not seem to work anymore. Reason to be found references: http://sunxi.org/Bootable_SD_card

Hummingbird A20 Development Board brush cubietruck SD card firmware

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.