• # À tout hasard

    Posté par . En réponse au message Script U-boot. Évalué à 1.

    L'U-Boot que j'utilise est configuré pour démarrer soit à partir d'une carte SD, soit à partir de la flash NAND interne. Bon le pseudo dual-boot ne t'intéresse probablement pas mais les variables type "bootcmd_sd" oui :
    # Common variables
    setenv bootargs_console '...'
    # Configuration 0 : booting on SDIO
    setenv bootargs_sd 'ro root=/dev/mmcblk0p2 rootdelay=1'
    setenv bootcmd_sd 'setenv bootargs $(bootargs_console) $(bootargs_sd); mmcinit; ext2load mmc 0 0x800000 /uImage; bootm 0x800000'
    # Configuration 1 : booting on native NAND
    setenv bootcmd_nand '...'
    # ... one variable to bring them all and in the darkness boot them ...
    setenv bootcmd 'run bootcmd_sd; run bootcmd_nand'
    ### saveenv
    ### reset
    
    Je suppose que si tu adaptes le setenv bootcmd_sd à chacun de tes noyaux, tu pourras ensuite joyeusement choisir lequel lancer au démarrage d'U-Boot en tapant run bootcmd_linux2.6.30 ou run bootcmd_linux2.6.32. Merci au wiki plugcomputer.org pour tous leurs exemples :)