Re: [GTA-04] multiboot with QtMoko/SHR
Thanks for your quick response. I will try an entirely different partitioning scheme (omitting the FAT32 on p1). Still puzzled as why my SHR on p4 never booted. As for 'unofficial beagle board pages', I was redirected there by [7]: "The SD card needs to have a special format as described here." (Probably I misinterpreted something here(?).) Thanks again, André. [7] http://projects.goldelico.com/p/gta04-rootfs/ On 11/13/2012 05:53 PM, Dr. H. Nikolaus Schaller wrote: Hi, with the new boot system [5] you can just format the heads/cylinders as you like and ignore [1] as long as your x-loader in NAND is intact. And even then, I suggest to follow the GTA04 documentation and not some inofficial beagle board pages. The new boot system scans for the first kernel it finds in any of the 4 ext2/3/4 partitions. Therefore the first partition not even needs to be FAT and you can have 4 ext partitions. Unfortunately I did not yet find the time to write a full documentation. Nikolaus [5] http://download.goldelico.com/gta04/20121030-GTA04-Production/ Am 13.11.2012 um 17:43 schrieb A.dre: Is it possible to prepare a SD-card for GTA-04 with multiple OS'es installed? (QtMoko and SHR in my case.) I tried and did not succeed. I followed (in chronological order) [1](sd-card), [2](QtMoko) and [3](SHR) with result [4] Different from [2] is that partition 4 is formatted as ext3 (instead of SWAP). This is the partition where I put SHR. As I understand from [3] SHR does not mandate specific partitions to be installed on. I tried QtMoko on partition 2 and SHR on p4. I never got SHR to boot. (QtMoko did boot.) I tried SHR on partition 2 and another SHR on p4. I never got SHR to boot from p4. (SHR from p2 booted although I selected p4 during boot!) Any ideas? Should the partition with /boot reside below 2GB? Is it mandatory to put QtMoko/rootfs on partition 2? Thanks in advance for any suggestions, André (As I'm writing this email I see the number heads is 246 instead of the 255 as in mentioned in [1]. I will give it another try.) [1] http://code.google.com/p/beagleboard/wiki/LinuxBootDiskFormat [2] http://sourceforge.net/projects/qtmoko/files/GTA04/ [3] http://shr-project.org/trac/wiki/Devices/GTA04/InstallGuide [4]$ sudo fdisk -l /dev/sdb Disk /dev/sdb: 7969 MB, 7969177600 bytes 246 heads, 62 sectors/track, 1020 cylinders, total 15564800 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x Device Boot Start End Blocks Id System /dev/sdb1 * 63 144584 72261c W95 FAT32 (LBA) /dev/sdb2 144585 5284655 2570035+ 83 Linux /dev/sdb3 528465610424726 2570035+ c W95 FAT32 (LBA) /dev/sdb41042472715564797 2570035+ 83 Linux $ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[GTA-04] multiboot with QtMoko/SHR
Is it possible to prepare a SD-card for GTA-04 with multiple OS'es installed? (QtMoko and SHR in my case.) I tried and did not succeed. I followed (in chronological order) [1](sd-card), [2](QtMoko) and [3](SHR) with result [4] Different from [2] is that partition 4 is formatted as ext3 (instead of SWAP). This is the partition where I put SHR. As I understand from [3] SHR does not mandate specific partitions to be installed on. I tried QtMoko on partition 2 and SHR on p4. I never got SHR to boot. (QtMoko did boot.) I tried SHR on partition 2 and another SHR on p4. I never got SHR to boot from p4. (SHR from p2 booted although I selected p4 during boot!) Any ideas? Should the partition with /boot reside below 2GB? Is it mandatory to put QtMoko/rootfs on partition 2? Thanks in advance for any suggestions, André (As I'm writing this email I see the number heads is 246 instead of the 255 as in mentioned in [1]. I will give it another try.) [1] http://code.google.com/p/beagleboard/wiki/LinuxBootDiskFormat [2] http://sourceforge.net/projects/qtmoko/files/GTA04/ [3] http://shr-project.org/trac/wiki/Devices/GTA04/InstallGuide [4]$ sudo fdisk -l /dev/sdb Disk /dev/sdb: 7969 MB, 7969177600 bytes 246 heads, 62 sectors/track, 1020 cylinders, total 15564800 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x Device Boot Start End Blocks Id System /dev/sdb1 * 63 144584 72261c W95 FAT32 (LBA) /dev/sdb2 144585 5284655 2570035+ 83 Linux /dev/sdb3 528465610424726 2570035+ c W95 FAT32 (LBA) /dev/sdb41042472715564797 2570035+ 83 Linux $ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Booting from SD-card / setting-up a second environment on FR
Hello list, I (first time poster and newly FR enjoy-er) try to boot from SD-card. I want to make a second environment in which I can experiment _without_ changing the software that the phone ships with. That is, without making all to big changes to the original software on the phone. I followed the instructions 'Boot_from_sd_card' on the wiki [1]. I used: - Openmoko-scaredycat-openmoko-devel-image-glibc-ipk-P1-Snapshot-20080507-om-gta02.rootfs.tar.gz - uImage-2.6.24+git20080507-r0-om-gta02.bin ==> Result: kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) Than I downloaded "Openmoko-Freerunner-20080424-om-gta02.rootfs.jffs2" and "uImage-2.6.24+git20080424-om-gta02.bin" (exactly the same files installed on the phone I believe) in order to write/copy these to SD-card. However, I don't know how to write/copy the jffs2 file to SD-card. (I cannot find the same file in 'tar.gz' format.) As I understand the filetype jffs2 is an image comparable with a iso-image of a cd [2]. I learned that it is possible to mount it as a 'loopback' device in order to read from the .jffs2 [3]. I also learned that the 'dd'-command (see[4]) can be used to create a .jffs2. ==>While learning all this, a totally different approach crossed my mind: Would it be possible to duplicate (with the use of dd) the standard environment (the FR ships with) to SD-card (in order to create a second environment)? Would it be possible to duplicate (with the use of dd) any environment (on the FR) for back-up purposes (and put it back when necessary)? Would it be helpful when such a method is described on the wiki? How would the command look like? I was guessing: - dd if=/dev/mtdblock2 of=/dev/mmcblk0p1 (assuming see[5] _/proc/mtd mtd2_(kernel) maps to /dev/mtdblock2) - dd if=/dev/mtdblock4 of=/dev/mmcblk0p2 (assuming see[5] _/proc/mtd mtd4_(rootfs) maps to /dev/mtdblock4) Because the source(blocksize??) and destination(partition sixe??) will differ in size, the commands above probably need extra parameters. (If this method works at all: Probably I'm totally wrong.) At the moment I'm most interested in answers to the questions above. However, tips / help with the 'kernel panic' is also much appreciated. (To be clear: The FR still boots, but not from SD-card!) Issues I checked are: - Kernel and filesystem 'fit' together. - File system: [EMAIL PROTECTED]:~# cat /etc/mtab | grep mmcblk0 /dev/mmcblk0p1 /mnt/mokokernel vfat rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1 0 0 /dev/mmcblk0p2 /mnt/moko ext2 rw 0 0 - u-boot environment: [EMAIL PROTECTED]: # command below 'stolen' from http://wiki.openmoko.org/wiki/Uboot. [EMAIL PROTECTED]: sudo ./dfu-util -a u-boot_env -R -U env.in [EMAIL PROTECTED]: cat env.in [...] menu_1=Boot from microSD (FAT+ext2): setenv bootargs ${bootargs_base} root fstype=ext2 root=/dev/mmcblk0p2 rootdelay=5 ${mtdparts} ro; mmcinit; fatload m mc 1 0x3200 ${sd_image_name}; bootm 0x3200 [...] Thanks, A.dre [1] http://wiki.openmoko.org/wiki/Boot_from_sd_card [2] http://lists.openmoko.org/nabble.html#nabble-td472598%7Ca472694 [3] http://wiki.openmoko.org/wiki/Userspace_root_image#Mount_on_loopback_device [4] dd if=/dev/mtdblock0 of= (for explanation see[3]) [5] http://wiki.openmoko.org/wiki/Bricked#Useful_information ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community