Meego Wiki
Views

ARM/TEGRA2/Notes

From MeeGo wiki
< ARM | TEGRA2(Difference between revisions)
Jump to: navigation, search
 
Line 9: Line 9:
backup device using nvflash - http://tosh-ac100.wetpaint.com/page/Backup+and+Restore
backup device using nvflash - http://tosh-ac100.wetpaint.com/page/Backup+and+Restore
-
split partition 7 (boot.img) to kernel and ramdisk using split_bootimg.pl - http://android-dls.com/wiki/index.php?titl...ack_Boot_Images
+
split partition 7 (boot.img) to kernel and ramdisk using split_bootimg.pl - http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
Change to use tty0 and try to point root to scdcard which has ubuntu fs, no need for initrd
Change to use tty0 and try to point root to scdcard which has ubuntu fs, no need for initrd

Latest revision as of 14:27, 11 June 2011

From stock vega - dmesg > dmesg.log

mem=448M@0M nvmem=64M@448M vmalloc=192M video=tegrafb console=ttyS0,115200n8 usbcore.old_scheme_first=1 tegraboot=nand mtdparts=tegra_nand:2048K@6784K(misc),5120K@9344K(recovery),8192K@14976K(boot),1 2496K@23680K(system),32768K@146688K(cache),4096K@179968K(staging),339200K@184576 (userdata)

backup device using nvflash - http://tosh-ac100.wetpaint.com/page/Backup+and+Restore

split partition 7 (boot.img) to kernel and ramdisk using split_bootimg.pl - http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images

Change to use tty0 and try to point root to scdcard which has ubuntu fs, no need for initrd

./mkbootimg --kernel part-7.img-kernel --ramdisk part-7.img-ramdisk.gz --cmdline "root=/dev/mmcblk3p1 rootdelay=15 rw mem=448M@0M noinitrd nvmem=64M@448M vmalloc=192M video=tegrafb console=tty0,115200n8 usbcore.old_scheme_first=1 debug tegraboot=nand mtdparts=tegra_nand:2048K@6784K(misc),5120K@9344K(recovery),8192K@14976K(boot),1 2496K@23680K(system),32768K@146688K(cache),4096K@179968K(staging),339200K@184576 (userdata) " -o kernel100.img

nvflash --bl bootloader.bin --download 7 kernelxxx.img

Good (now have frame buffer output) but still boots from internal flash - stock kernel

Try /dev/block/mmcblk3p1

./mkbootimg --kernel part-7.img-kernel --ramdisk part-7.img-ramdisk.gz --cmdline "root=/dev/block/mmcblk3p1 rootdelay=15 rw mem=448M@0M noinitrd nvmem=64M@448M vmalloc=192M video=tegrafb console=tty0,115200n8 usbcore.old_scheme_first=1 debug tegraboot=nand mtdparts=tegra_nand:2048K@6784K(misc),5120K@9344K(recovery),8192K@14976K(boot),1 2496K@23680K(system),32768K@146688K(cache),4096K@179968K(staging),339200K@184576 (userdata) " -o kernel101.img

Seems to be booting from mmc even though I have a root=, is it the tegraboot=nand?

./mkbootimg --kernel part-7.img-kernel --ramdisk part-7.img-ramdisk.gz --cmdline "root=/dev/block/mmcblk3p1 rootdelay=15 rw mem=448M@0M noinitrd nvmem=64M@448M vmalloc=192M video=tegrafb console=tty0,115200n8 usbcore.old_scheme_first=1 debug mtdparts=tegra_nand:2048K@6784K(misc),5120K@9344K(recovery),8192K@14976K(boot),1 2496K@23680K(system),32768K@146688K(cache),4096K@179968K(staging),339200K@184576 (userdata) " -o kernel102.img

This did try to boot something other than internal flash initially but failed - last try before bed (2.35am) - point to init

./mkbootimg --kernel part-7.img-kernel --ramdisk part-7.img-ramdisk.gz --cmdline "root=/dev/block/mmcblk3p1 rootdelay=15 rw mem=448M@0M noinitrd nvmem=64M@448M vmalloc=192M video=tegrafb init=/sbin/init console=tty0,115200n8 usbcore.old_scheme_first=1 debug mtdparts=tegra_nand:2048K@6784K(misc),5120K@9344K(recovery),8192K@14976K(boot),1 2496K@23680K(system),32768K@146688K(cache),4096K@179968K(staging),339200K@184576 (userdata) " -o kernel103.img

Its still ignoring root= and noinitrd. So next I'll try

  • edit the init.rc scripts in the ramdisk to force the rootfs to be mounted from the sdcard
  • Patch do_mount to mount the rootfs from the sdcard
  • Investigate why the root and noinitrd commands are being ignored
  • try fastboot instead of nvflash

\o/ booted to login prompt with this

./mkbootimg --kernel part-7.img-kernel --ramdisk hardcoded-initrd-noinit.gz --cmdline "root=/dev/mmcblk3p1 rootdelay=25 rw mem=448M@0M nvmem=64M@448M vmalloc=192M init=/sbin/init video=tegrafb console=tty0,115200n8 usbcore.old_scheme_first=1 mtdparts=tegra_nand:2048K@6784K(misc),5120K@9344K(recovery),8192K@14976K(boot),122496K@23680K(system),32768K@146688K(cache),4096K@179968K(staging),339200K@184576K(userdata) " -o kernel113.img

trick was to remove init from the ramdisk - http://www.mjmwired.net/kernel/Documentation/filesystems/ramfs-rootfs-initramfs.txt


ubuntu video http://www.youtube.com/watch?v=ZysM3Vah6H4

meego console http://twitpic.com/3oalt5/full

meego xterm http://twitpic.com/3obgji/full

Personal tools