sbc-7109-454 SD card Boot system parameter settings

Source: Internet
Author: User

First, record the results directly.

modifying parameters in U-boot

#define AUTO_UPDATESYS * *

Comment out this parameter directly.

This parameter is a parameter originally used to upgrade nor flash boot system settings, that is, the existence of this parameter is to upgrade the original nor flash system.

After the comment is dropped, inserting the SD card will not automatically burn the system to nor flash in the u-boot phase.

After the comments, see the following parameters

1 #defineCON \2     "console=ttyo0,115200n8\0" \                                                3     "optargs=\0" \                                                              4     "MMCROOT=/DEV/MMCBLK0P2 rw\0" \                                             5     "mmcrootfstype=ext3 rootwait\0" \                                           6     "nandroot=ubi0:rootfs RW ubi.mtd=7,2048\0" \                                7     "nandrootfstype=ubifs rootwait=1\0"                

The meaning of this parameter is that the debug information printed in TtyO0, TI's ttyO0 is the first UART port, the baud rate is 115200

MMCROOT=/DEV/MMCBLK0P2 RW This is the description of your file system in the second partition, the permissions are readable writable

Mmcrootfstype=ext3 rootwait This is a description of your partition format is ext3

So, now, to partition your SD card

Paste a previous partition script:

1#! /bin/SH2 3 # get SD Card device node and erase partition table4drive=$1                                                                        5Ddif=/dev/zero of= $DRIVE bs=1024x768Count=1024x768                                    6                                                                                 7 # Get the SD card size and display the byte size in terminal8Size= ' Fdisk-l $DRIVE | grep Disk | Awk'{print $}'`                           9echo DISK SIZE-$SIZE bytesTen                                                                                  One # Calculate the number of magnetic cylinders A# the size of each cylinder is 255* the* +=8,225,280Bytes -Cylinders= ' echo $SIZE/255/ the/ +|BC ' -  the  -# The first line of the partition description,9,0x0C, * automatically assigns the starting cylinder, the number is 9, the partition ID is 0x0c (indicates FAT32 partition >),<bootable> is *, which indicates a bootable partition.  -# The second row of partition description 10, the,,-also automatically assigned the cylinder, the number is 115, the other is the default.  -# The third row of partition description 126,,,-also automatically assigned the cylinder, all the remaining quantity, the other is the default.  +Sfdisk-d-H255-S the-C $CYLINDERS $DRIVE <<EOF -,9,0x0C,* + Ten, the,,- A 126,,,- at EOF -                                                                                  - # Format each partition, format and unload the corresponding partition -Mkfs.vfat-f +-N"Boot"${drive}1                                              -Umount ${drive}1                                                                 -Mkfs.ext3-l"Rootfs"${drive}2                                                  inUmount ${drive}2                                                                 -Mkfs.ext3-l"Start_here"${drive}3                                     

Partition complete, mlo u-boot.img uimage to the first boot partition

Package the entire file system and unzip it to the second partition.

Start

sbc-7109-454 SD card Boot system parameter settings

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.