environment.in - plik konfiguracyjny menu U-Boot dla Neo FreeRunner
#! ./envedit.pl -s 262144 -f environment.in > u-boot_env.in
#
# Nazwa pliku:    environment.in
# Tytuł:    Menu wyboru U-Boot dla Neo FreeRunner OM-GTA02
# Autor:    Camelek.AmigaRulez
#
 
#define CONSOLE ttySAC2
#define ROOTDEV /dev/mtdblock6
#define FRAMEBUFFER 0x8800000
#define MMC_NUM 1:2
 
#ifndef QUIET
#define LOGLEVEL 8
#else
#define LOGLEVEL 4
#endif
 
#ifdef INIT
#define INIT_OPT init=INIT
#else
#define INIT_OPT
#endif
 
#ifndef SD_KERNEL
#define SD_KERNEL uImage.bin
#endif
 
##### Common settings #########################################################
 
bootargs_base=
    console=CONSOLE,115200
    console=tty0
    loglevel=LOGLEVEL
    INIT_OPT
    regular_boot
    glamo_mci.sd_max_clk=15000000
 
baudrate=115200
 
mtdparts=
    mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)
 
bootcmd=
    setenv bootargs
        ${bootargs_base}
        root=/dev/mmcblk0p2 rootwait
        mem=127M panic=20
        ${mtdparts} ro;
    mmcinit;
    ext2load mmc MMC_NUM 0x32000000 ${sd_image_name} 0x300000;
    bootm 0x32000000
 
stdout=usbtty
stderr=usbtty
stdin=usbtty
 
usbtty=cdc_acm
 
sd_image_name=SD_KERNEL
 
##### Appearance and mode of interaction ######################################
 
#ifdef NOR_ENV
 
bootdelay=5
boot_menu_timeout=999
 
#else
 
bootdelay=1
 
quiet=1
 
splashimage=
#  nand read.e 0x32000000 splash 0x5000;
#  unzip 0x32000000 FRAMEBUFFER 0x96000
 
#endif
 
##### Menu items ##############################################################
 
menu_1=
    Boot NAND/jffs2:
    setenv bootargs
        ${bootargs_base}
        ${mtdparts}
        rootfstype=jffs2;
    nand read.e 0x32000000 kernel 0x300000;
    bootm 0x32000000
 
menu_2=
    Boot NAND/ubi-zlib:
    setenv bootargs
        ${bootargs_base}
        ${mtdparts}
        rootfstype=ubifs
        ubi.mtd=6,2048 ubi.comp root=ubi0:om-gta02-rootfs
        rootflags=compr=zlib,no_chk_data_crc;
    nand read.e 0x32000000 kernel 0x300000;
    bootm 0x32000000
 
menu_3=
    Boot NAND/ubi-zlib/ecc:
    setenv bootargs
        ${bootargs_base}
        ${mtdparts}
        rootfstype=ubifs
        ubi.mtd=6,2048 ubi.comp root=ubi0:rootfs 
        rootflags=compr=zlib,no_chk_data_crc
        hardware_ecc=1;
    nand read.e 0x32000000 kernel 0x300000;
    bootm 0x32000000
 
menu_4=
    Boot from microSD (FAT+ext2):
    setenv bootargs
        ${bootargs_base}
        rootfstype=ext2
        root=/dev/mmcblk0p2 rootdelay=5
        ${mtdparts} ro;
    mmcinit;
    fatload mmc 1 0x32000000 ${sd_image_name};
    bootm 0x32000000
 
menu_5=
    Boot from microSD (FAT+ext3):
    setenv bootargs
        ${bootargs_base}
        rootfstype=ext3
        root=/dev/mmcblk0p2 rootdelay=5
        ${mtdparts} ro;
    mmcinit;
    fatload mmc 1 0x32000000 ${sd_image_name};
    bootm 0x32000000
 
menu_6=
    Boot from microSD (mmcp2, nofs):
    setenv bootargs
        ${bootargs_base} 
        root=/dev/mmcblk0p2 rootwait
#        mem=127M panic=20
        ${mtdparts} ro;
    mmcinit;
    ext2load mmc MMC_NUM 0x32000000 ${sd_image_name} 0x300000;
    bootm 0x32000000
 
menu_7=
    Boot from microSD (mmcp2, nofs, hwecc):
    setenv bootargs
        ${bootargs_base} 
        root=/dev/mmcblk0p2 rootwait
        hardware_ecc=1
#        mem=127M panic=20
        ${mtdparts} ro;
    mmcinit;
    ext2load mmc MMC_NUM 0x32000000 ${sd_image_name} 0x300000;
    bootm 0x32000000
 
menu_8=
    Reboot:
    reset
 
#ifdef UNUSED
menu_9=
    Factory reset:
    defaultenv;
    dynpart;
    bootd
#endif
 
menu_10=
    Power off:
    neo1973 power-off
O ile nie zaznaczono inaczej, treść tej strony objęta jest licencją GNU Free Documentation License.