]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - doc/README.KARO-TX51
Prepare v2015.07-rc2
[karo-tx-uboot.git] / doc / README.KARO-TX51
1                                         U-Boot for TX51
2                                         ===============
3
4 Building U-Boot
5 ---------------
6
7 Note: There are currently three variants of the TX51 module, that
8       require slightly different U-Boot configurations. They are
9       distinguished through the last digit of the module name
10       suffix. The configuration names depending on the last digit of
11       the module name are:
12       TX51-8??0                 tx51-8xx0_config
13       TX51-8??1                 tx51-8xx1_2_config
14       TX51-8??2                 tx51-8xx1_2_config
15
16
17 Unpacking the source
18 --------------------
19 mkdir u-boot
20 cd u-boot
21 tar -xjf /cdrom/U-Boot/u-boot-src.tar.bz2
22
23 Alternatively you can access the current source via the git repository:
24 git://git.karo-electronics.de/karo-tx-uboot.git master
25
26
27 Compiling U-Boot
28 ----------------
29 export ARCH=arm
30 export CROSS_COMPILE=arm-cortexa8-linux-gnueabi-
31 make tx51-8xx?_config            (see above Note!)
32 make
33
34
35 Flashing U-Boot Image
36 ---------------------
37 If you want to replace a working U-Boot with a new version, you can
38 load the new U-Boot image via TFTP and program it like any other flash
39 partition with:
40 nand erase.part u-boot;nand write ${fileaddr} u-boot ${filesize}
41
42 If you want to revive a bricked module, you can use one of the
43 flashtools provided with the BSP to reprogram the flash.
44
45
46 U-Boot Features
47 ---------------
48
49 Environment variables:
50 boot_mode     selects which boot script will be used by 'bootcmd' to
51               boot the application (Linux)
52               supported values:
53               nand: (default) load kernel from NAND partition 'linux'
54                               and mount rootfs (fstype UBIFS)
55                               from partition 'rootfs'. 
56               mmc:            load kernel from file 'uImage' on first
57                               partition (FAT) on (first) SD/MMC card
58                               and mount rootfs (fstype autodetected)
59                               from second partition.
60               net:            load kernel image via tftp (file uImage)
61                               and mount rootfs via NFS. This requires
62                               the additional variables 'nfsroot'
63                               (path to rootfs on NFS server) and
64                               'nfs_server' (hostname or IP address of
65                               NFS server) to be set.
66               jffs2: (legacy) load kernel from NAND partition 'linux'
67                               and mount rootfs (fstype JFFS2)
68                               from partition 'rootfs'.
69
70 cpu_clk       <CPU freq [MHz]> CPU clock frequency set after boot.
71
72 touchpanel    {tsc2007|edt-ft5x06} type of touchpanel.
73               No touchpanel will be enabled when unset.
74
75 otg_mode      [host|device|none] operation mode of the USBOTG port
76
77 video_mode    <one of the display names from the Glyn Family Concept or
78               a video mode as understood by Linux fb_find_mode() function
79               (e.g.: 640x480MR-24@60)>
80               LCD interface will be disabled when unset.
81
82 baseboard     {stk5-v3|stk5-v5} selects type of baseboard
83               'stk5-v5' setting disables USB Host mode on USBOTG port
84               and redefines the LCD0 pin as CAN transceiver control pin.
85               Strings not starting in 'stk5' prevent the STK5 specific
86               pad initialization to be done.
87
88 splashimage   either: memory address (e.g. ${loadaddr}) of a BMP file
89               to be displayed instead of the built-in logo. Since NAND
90               flash is not accessible in a memory mapped fashion,
91               U-Boot will try to load the contents of the flash
92               partition 'logo.bmp' to the address given with
93               'splashimage'.
94
95               or: the name of an MTD partition, that contains a raw
96               dump of the frame buffer contents which will be loaded
97               to the framebuffer.
98
99 splashpos     (when 'splashimage' contains a memory address) the
100               position ('x,y') on the screen at which the BMP image
101               will be displayed.
102               Setting splashpos to 'm,m' will center the image on the
103               screen.
104
105 Note: Some variables (like 'cpu_clk' or 'splashimage') may render the
106       board unbootable if incorrectly set. Therefore these variables
107       will not be evaluated in case the board has been reset through a
108       watchdog reset or <CTRL-C> is detected on the serial console
109       during startup to give the user a chance to recover from this
110       situation. You should press and hold <CTRL-C> before applying
111       power to the module, for this to work.