« Asus X205TA Ubuntu2110 » : différence entre les versions

De Lea Linux
Aller à la navigation Aller à la recherche
(Page créée avec « = Installation d'un Linux Ubuntu 21.10 sur un Asus X205TA = De base, c'est une plaie :) Il faut savoir que le CPU Intel gère le 64 bits, mais que pour le boot, cela n'ac... »)
 
Aucun résumé des modifications
Ligne 2 : Ligne 2 :


De base, c'est une plaie :)
De base, c'est une plaie :)
Il faut savoir que le CPU Intel gère le 64 bits, mais que pour le boot, cela n'accepte qu'un boot-loader 32 bits, il faut trop jouer des coudes pour arriver sans avoir à tout casser.
Il faut savoir que le CPU Intel gère le 64 bits, mais que pour le boot, cela n'accepte qu'un boot-loader 32 bits, il faut trop jouer des coudes pour arriver sans avoir à tout casser.


  1. Télécharger l'ISO Ubuntu 21.10 Desktop 64 Bits : https://releases.ubuntu.com/21.10/ ou bien directement ici : https://releases.ubuntu.com/21.10/ubuntu-21.10-desktop-amd64.iso
* Télécharger l'ISO Ubuntu 21.10 Desktop 64 Bits :
  2. Burner l'image sur une clef usb: dd if=ubuntu-21.10-desktop-amd64.iso of=/dev/<le device de votre usb>
 
  3. Monter la partition EFI (la seconde) pour aller écraser le boot-loader incompatible avec l'Asus X205TA : soit le baytail-bootia32.efi (https://github.com/hirotakaster/baytail-bootia32.efi) soit http://www.thinktwisted.com/gradschool/Public/grubia32.efi :
        - Index: https://releases.ubuntu.com/21.10/  
    mount /dev/sda2 /media/usb/    <== si /dev/sda est la clef usb, ou alors /dev/sdb
        - Lien direct: https://releases.ubuntu.com/21.10/ubuntu-21.10-desktop-amd64.iso
 
* Burner l'image sur une clef usb:  
 
        dd if=ubuntu-21.10-desktop-amd64.iso of=/dev/<le device de votre usb>
 
* Télécharger le boot 32bits :  
 
        - Lien1: http://www.thinktwisted.com/gradschool/Public/grubia32.efi
        - Lien2: https://github.com/hirotakaster/baytail-bootia32.efi


  4. Dans /EFI/boot (ou /efi/boot/), écraser bootx64.efi avec bootia32.efi
* Monter la partition EFI :


    cp ~/chez/vous/bootia32.efi /media/usb/EFI/boot/bootia32.efi
        mount /dev/sda2 /media/usb/     <== si /dev/sda est la clef usb, ou alors /dev/sdb
    cp ~/chez/vous/bootia32.efi /media/usb/EFI/boot/bootx64.efi


  5. Demonter la clef (umount /media/usb)
* Dans /EFI/boot (ou /efi/boot/), écraser bootx64.efi avec bootia32.efi
  6. Démarrer l'ordinateur avec la clef USB dans le port USB et pressez plusieurs fois F2 pour accéder au bios.  
 
  7. Dans le bios, Advanced > USB Configuration > USB Controller Select > *EHCI*
        cp ~/chez/vous/bootia32.efi /media/usb/EFI/boot/bootia32.efi
  8. Dans le bios, Security > Secure Boot Menu -> Secure Boot Control -> *Disabled*
        cp ~/chez/vous/bootia32.efi /media/usb/EFI/boot/bootx64.efi
  9. Dans le bios, "Save & Exit" > Save Changes (pas "Save Changes & Exit")
 
  10. Dans le bios, "Save & Exit" > Boot Override > "USB"
* Demonter la clef  
 
        umount /media/usb
 
* Démarrer l'ordinateur avec la clef USB dans le port USB et presser plusieurs fois F2 pour accéder au bios.  
 
* Dans le Bios :
 
      - Advanced > USB Configuration > USB Controller Select > *EHCI*
      - Security > Secure Boot Menu -> Secure Boot Control -> *Disabled*
      - Save & Exit > Save Changes (pas Save Changes & Exit)
      - Save & Exit > Boot Override > "USB"


Si tout se passe bien, vous aurez le prompt GRUB sans rien d'autre.
Si tout se passe bien, vous aurez le prompt GRUB sans rien d'autre.


  11. Taper :
* Dans Grub, taper :
 
        set root=(hd0,1)
        linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed
        initrd /casper/initrd
        boot
 
* Attendre le boot du live-usb (si tout se passe bien :)
 
 
----
 
Annexe:
 
Pour compiler son propre bootia32.efi (source: lopaka,  https://github.com/lopaka/instructions/blob/master/ubuntu-16.04-install-asus-x205ta.md)
 
PS: Non testé.


    set root=(hd0,1)
Note importante: à compiler sur une ancienne version de GCC-6 ou GG-7 ou bien directement, sous une ubuntu 16.10 (docker toussa) - sinon gcc va gueuler des erreurs :
    linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed
    initrd /casper/initrd
    boot


   12. Attendre, le live-usb boot (si tout se passe bien :)
   apt -y install git bison libopts25 libselinux1-dev autogen
        m4 autoconf help2man libopts25-dev flex libfont-freetype-perl \
        automake autotools-dev libfreetype6-dev texinfo python make libdevmapper-dev \
        build-essential
  git clone git://git.savannah.gnu.org/grub.git
  cd grub
  git checkout b4d709b6ee789cdaf3fa7a80fd90c721a16f48c2
  ./autogen.sh
  ./configure --with-platform=efi --target=i386 --program-prefix=''
  make
  cd grub-core
  ../grub-mkimage -d . -o bootia32.efi -O i386-efi -p /boot/grub \
        ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus iso9660 linux keylayouts \
        memdisk minicmd part_apple ext2 extcmd xfs xnu part_bsd part_gpt search search_fs_file \
        chain btrfs loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart scsi loopback \
        normal configfile gzio all_video efi_gop efi_uga gfxterm gettext echo boot chain eval
  cp ~/boot32/grub/grub-core/bootia32.efi /media/usb/EFI/boot/

Version du 26 octobre 2021 à 15:30

Installation d'un Linux Ubuntu 21.10 sur un Asus X205TA

De base, c'est une plaie :)

Il faut savoir que le CPU Intel gère le 64 bits, mais que pour le boot, cela n'accepte qu'un boot-loader 32 bits, il faut trop jouer des coudes pour arriver sans avoir à tout casser.

  • Télécharger l'ISO Ubuntu 21.10 Desktop 64 Bits :
       - Index: https://releases.ubuntu.com/21.10/ 
       - Lien direct: https://releases.ubuntu.com/21.10/ubuntu-21.10-desktop-amd64.iso
  • Burner l'image sur une clef usb:
       dd if=ubuntu-21.10-desktop-amd64.iso of=/dev/<le device de votre usb>
  • Télécharger le boot 32bits :
       - Lien1: http://www.thinktwisted.com/gradschool/Public/grubia32.efi
       - Lien2: https://github.com/hirotakaster/baytail-bootia32.efi
  • Monter la partition EFI :
       mount /dev/sda2 /media/usb/     <== si /dev/sda est la clef usb, ou alors /dev/sdb
  • Dans /EFI/boot (ou /efi/boot/), écraser bootx64.efi avec bootia32.efi
       cp ~/chez/vous/bootia32.efi /media/usb/EFI/boot/bootia32.efi
       cp ~/chez/vous/bootia32.efi /media/usb/EFI/boot/bootx64.efi
  • Demonter la clef
       umount /media/usb
  • Démarrer l'ordinateur avec la clef USB dans le port USB et presser plusieurs fois F2 pour accéder au bios.
  • Dans le Bios :
      - Advanced > USB Configuration > USB Controller Select > *EHCI*
      - Security > Secure Boot Menu -> Secure Boot Control -> *Disabled*
      - Save & Exit > Save Changes (pas Save Changes & Exit)
      - Save & Exit > Boot Override > "USB"

Si tout se passe bien, vous aurez le prompt GRUB sans rien d'autre.

  • Dans Grub, taper :
       set root=(hd0,1)
       linux	/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed
       initrd	/casper/initrd
       boot
  • Attendre le boot du live-usb (si tout se passe bien :)



Annexe:

Pour compiler son propre bootia32.efi (source: lopaka, https://github.com/lopaka/instructions/blob/master/ubuntu-16.04-install-asus-x205ta.md)

PS: Non testé.

Note importante: à compiler sur une ancienne version de GCC-6 ou GG-7 ou bien directement, sous une ubuntu 16.10 (docker toussa) - sinon gcc va gueuler des erreurs :

 apt -y install git bison libopts25 libselinux1-dev autogen 
       m4 autoconf help2man libopts25-dev flex libfont-freetype-perl \
       automake autotools-dev libfreetype6-dev texinfo python make libdevmapper-dev \
       build-essential
 git clone git://git.savannah.gnu.org/grub.git
 cd grub
 git checkout b4d709b6ee789cdaf3fa7a80fd90c721a16f48c2
 ./autogen.sh
 ./configure --with-platform=efi --target=i386 --program-prefix=
 make
 cd grub-core
 ../grub-mkimage -d . -o bootia32.efi -O i386-efi -p /boot/grub \
        ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus iso9660 linux keylayouts \
        memdisk minicmd part_apple ext2 extcmd xfs xnu part_bsd part_gpt search search_fs_file \
        chain btrfs loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart scsi loopback \
        normal configfile gzio all_video efi_gop efi_uga gfxterm gettext echo boot chain eval
 cp ~/boot32/grub/grub-core/bootia32.efi /media/usb/EFI/boot/