Votre recherche :

root

Avatar de l’utilisateur
MDProz
Re: [TUTO] Android Switch-Root / Redimensionner les partitio
Pas plus que cela mais si j'ai besoin, je te solliciterai. Les Gifs que tu as fait aident beaucoup :)
Voir le sujet
Avatar de l’utilisateur
roukxwel
Re: [TUTO] Android Switch-Root / Redimensionner les partitio
tu te débrouille via le terminal d'ubuntu ?
Voir le sujet
Avatar de l’utilisateur
MDProz
Re: [TUTO] Android Switch-Root / Redimensionner les partitio
Je me doute. Faudra que je me lance quand j'aurai la main sur la Switch. Ça a l'air prometteur après lecture.
Voir le sujet
Avatar de l’utilisateur
roukxwel
Re: [TUTO] Android Switch-Root / Redimensionner les partitio
Je l'ai invité via Discord après on verra si il a le temps de zieuté
Voir le sujet
Avatar de l’utilisateur
MDProz
Re: [TUTO] Android Switch-Root / Redimensionner les partitio
Envoie lui un MP mais tu as dû déjà lui demander :mrgreen:
Voir le sujet
Avatar de l’utilisateur
roukxwel
Re: [TUTO] Android Switch-Root / Redimensionner les partitio
Il est aussi possible de partitionner pour installer sur une SD 4t-ubuntu, Lakka Switch, Switchroot_Android et Atmosphere avec emunand.

Par contre la je suis un peu trop a la ramasse trop une quiche sous linux. :oops:
Si le super administrateur linuxien pouvait passer par la histoire de voir. :mrgreen:
[+] CLIQUER POUR AFFICHER
Creating All in One SDCard for the Nintendo Switch

1. Open Gparted
2. Erase all partitions from SDcard
3. Click on Device menu
4. Click on Create Partition Table
5. Choose GPT partition type, and click ok.
6. Create Partitions

    1. Hos data(>2GB) Partition Name:hos_data Type: Fat32
    2. EMUNAND (32GB) Partition Name:emunand Type: Fat32
    3. vendor (1.06GB) Partition Name:vendor Type: ext4
    4. system (2.17GB) Partition Name: system Type: ext4
    5. boot (70.0MB) Partition Name: boot Type:Unformatted
    6. recovery (70.0MB) Partition Name:recovery Type: Unformatted
    7. dtb (30.0MB) Partition Name: dtb Type: Unformatted
    8. userdata(As big as you want) Partition Name: userdata Type: ext4
    9. linux_root(As big as you want) Partition Name:linux Type: ext4
    10. Swap Space(8GB, optional) Partition Name:linux_swap type: linux_swap
    11. Shared space between lakka, android, and linux

7. Apply changes

8. download kosmos, lakka, android(16GB image will work), and l4t-ubuntu.

9. extract Kosmos and lakka to partition 1.

10. extract android image from GZ.

11. type into terminal: sudo kpartx -v -a android.img(rename to match the extracted img file)

12. type into terminal mount /dev/loop0p1 /mnt

13. Copy all data from /mnt to hos_data partition

15. recreate android boot.scr using this configuration(Save as android.txt)

    setenv bootargs 'log_buf_len=4M access=m2 androidboot.bootreason=recovery androidboot.hardware=icosa androidboot.console=ttyGS0 console=tty0 androidboot.selinux=permissive fbcon=primary:0 androidboot.serialno='${serialno}
    if gpio input 190; then
    part start mmc 1 <partition number of boot image> aistart
    part size mmc 1 <partition number of boot image> aisize
    else
    part start mmc 1 <partition number of recovery image> aistart
    part size mmc 1 <partition number of recovery image> aisize
    fi
    mmc read 0x98000000 ${aistart} ${aisize}
    boota 0x98000000

16. Build android boot.scr with mkimage(Included with u-boot, needs to be compiled)
    mkimage -A arm -T script -O linux -d android.txt android_boot.scr

17. Replace boot.scr in switchroot android folder with the copy you just created Make sure to rename it to boot.scr.

18. use dd to copy android data to partitions. sdcard can be mmcblk0p or sdX<number> It differs depending on the computer.
    dd if=/dev/loop0p2 of=/dev/<sdcard>3 bs=256M
    dd if=/dev/loop0p3 of=/dev/<sdcard>4 bs=256M
    dd if=/dev/loop0p4 of=/dev/<sdcard>5 bs=256M
    dd if=/dev/loop0p5 of=/dev/<sdcard>6 bs=256M
    dd if=/dev/loop0p6 of=/dev/<sdcard>7 bs=256M

19.(Optional) We are skipping userdata folder: If you want to copy userdata from a pre-setup card, then you will need to mount both SD cards userdata partitions, and use cp -pr /path/to/existing/userdata /path/to/new/userdata

20. Mount linux root from image and linux root partition on new sdcard.

21. Copy data from one to the other using cp -rp /path/to/linux/root/data /path/to/new/linux/root

22. edit /path/to/new/linux/root/etc/fstab
    so change: /dev/root / ext4
    to: /dev/mmcblk0p<# of linux root> / ext4

22. save.

23. Copy data off partition 1 of linux image to hos_data partition on new SDcard.

23. Create Linux boot.scr using script below.
    load mmc 1:1 0x8d000000 l4t-ubuntu/tegra210-icosa.dtb
    load mmc 1:1 0x92000000 l4t-ubuntu/initramfs
    setenv bootargs 'root=/dev/mmcblk0p<number of linux root> rw rootwait relative_sleep_states=1 access=m2 console=tty0 firmware_class.path=/lib/firmware/ fbcon=primary:1'
    usb reset
    booti 0x83000000 0x92000000 0x8d000000


24. Save as linux_boot.txt

25. Build linux boot.scr with mkimage(Included with u-boot, needs to be compiled)
    mkimage -A arm -T script -O linux -d linux_boot.txt linux_boot.scr

26. Replace hos_data/l4t-ubuntu/boot.scr with our linux_boot.scr

27. Unmount all partitions that have been mounted on new sdcard(Very Important)

28. Create hybrid MBR: Now that we have the data on the partitions, we need to create a hybrid mbr so we can boot to do this, we need to use gdisk.
    gdisk /dev/<path to sdcard> sdX or mmcblk0

29. once in gdisk:
    1. Hit r and enter
    2. hit h and enter
    3. Enter partitions to include in MBR seperated by spaces.
    if you used my partition layout it would be: 1 2
    4. say N to good for grub question.
    5. set MBR hex code for both partitions to EE, and dont set bootable flag.
    6. once it returns to recovery/transformation command prompt hit o to verify the mbr.
    7. If everything looks good, type wq to save and quit.

30. Now place the SDcard in the switch, and boot hekate. Create emunand partition, and enable. If you have done everything correctly, it should boot l4t-ubuntu, Lakka Switch, Switchroot_Android, and Atmosphere with emunand.
Voir le sujet
Avatar de l’utilisateur
MDProz
Re: [TUTO] Android Switch-Root / Redimensionner les partitio
Merci pour le Tutoriel. Nice job ;)

J'ai ajouté le lien dans le Tutoriel de départ.
Voir le sujet
Avatar de l’utilisateur
roukxwel
Re: [TUTO] Android Switch-Root / Redimensionnement des parti
Reserve FAQ si besoin
Voir le sujet