Hi Guru's
I successfully builf my own kernel abd run it for arm64, I try now to do the same trick with arm32.
I need to have a root fs bigger enough to do basic dev in c user code.
I choose latest raring-developper for this. DL vexpress-raring_developer_20130826-443.img.gz
I can then mount it and extract vmlinuz and initrd then boot it like given on some doc pages
qemu-system-arm \ -kernel vmlinuz \ -sd vexp.img \ -M vexpress-a9 \ -cpu cortex-a9 \ -serial stdio \ -m 1024 \ -initrd initrd \ -append 'root=/dev/mmcblk0p2 rw mem=1024M raid=noautodetect console=ttyAMA0,38 400n8 rootwait vmalloc=256MB devtmpfs.mount=0'
From there I got a prompt
root@linaro-developer:~# uname -a Linux linaro-developer 3.11.0-1-linaro-vexpress #1ubuntu1~ci+130822051821-Ubuntu SMP Thu Aug 22 05:54:20 UTC 201 armv7l armv7l armv7l GNU/Linux root@linaro-developer:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p2 963288 652056 245084 73% / udev 514152 4 514148 1% /dev tmpfs 103060 172 102888 1% /run none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 515280 0 515280 0% /run/shm none 102400 0 102400 0% /run/user
I need more disc space for doing dev, so I investigated 2 options
1) Make the rootfs bigger I truncate 4G the rootfs.img (rootfs.img is a short for vexpress-raring_developer_20130826-443.img) then I losetup the rootfs.img and use gparted to extend the ext4 partition.
Alas next reboot fail, a bit like if /dev/mmcblk0p2 has an hardcoded size...
2) have an extern (user data) disc, and have it mounted So I trucate phi.img 4G, mkfs it, and try to mount it, but I got no idea what /dev to use to mount it, and got no idea what could be given in the qemu runstring to ask for one more disc in the HW description.
Later on I would need to boot my own kernel, I tried the build from source path, all goes fine and I can get an Image a uImage etc, so I guess it will be a matter of providing this the vmlinus I get along with the initrd I got from teh rootfs.img, will see how it goes. But for now my problem is really to have more disc space either in rootfs ot in an additional disc.
Any help appreciated.
Cheers, Phi
Hi All,
Well I got a solution, I took the rootfs.img, truncate 4G, losetup, gparted, then instead of expanding part2 as I did in my prev try, I simply added a partition3, that I formated ext4
I can then boot as before and now I got one more dev I can use to mount my extra data partition.
mkdir /d mount /dev/mmcblk0p3 /d df
Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p2 963288 652152 244988 73% / udev 514152 4 514148 1% /dev tmpfs 103060 176 102884 1% /run none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 515280 0 515280 0% /run/shm none 102400 0 102400 0% /run/user /dev/mmcblk0p3 3030800 4608 2852524 1% /d root@linaro-developer:~#
An happy camper :) I got now to start the NW on a bridge should be a breeze :) Cheers, Phi
On Sun, Sep 1, 2013 at 6:53 PM, Phi Debian phi.debian@gmail.com wrote:
Hi Guru's
I successfully builf my own kernel abd run it for arm64, I try now to do the same trick with arm32.
I need to have a root fs bigger enough to do basic dev in c user code.
I choose latest raring-developper for this. DL vexpress-raring_developer_20130826-443.img.gz
I can then mount it and extract vmlinuz and initrd then boot it like given on some doc pages
qemu-system-arm \ -kernel vmlinuz \ -sd vexp.img \ -M vexpress-a9 \ -cpu cortex-a9 \ -serial stdio \ -m 1024 \ -initrd initrd \ -append 'root=/dev/mmcblk0p2 rw mem=1024M raid=noautodetect console=ttyAMA0,38 400n8 rootwait vmalloc=256MB devtmpfs.mount=0'
From there I got a prompt
root@linaro-developer:~# uname -a Linux linaro-developer 3.11.0-1-linaro-vexpress #1ubuntu1~ci+130822051821-Ubuntu SMP Thu Aug 22 05:54:20 UTC 201 armv7l armv7l armv7l GNU/Linux root@linaro-developer:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p2 963288 652056 245084 73% / udev 514152 4 514148 1% /dev tmpfs 103060 172 102888 1% /run none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 515280 0 515280 0% /run/shm none 102400 0 102400 0% /run/user
I need more disc space for doing dev, so I investigated 2 options
- Make the rootfs bigger
I truncate 4G the rootfs.img (rootfs.img is a short for vexpress-raring_developer_20130826-443.img) then I losetup the rootfs.img and use gparted to extend the ext4 partition.
Alas next reboot fail, a bit like if /dev/mmcblk0p2 has an hardcoded size...
- have an extern (user data) disc, and have it mounted
So I trucate phi.img 4G, mkfs it, and try to mount it, but I got no idea what /dev to use to mount it, and got no idea what could be given in the qemu runstring to ask for one more disc in the HW description.
Later on I would need to boot my own kernel, I tried the build from source path, all goes fine and I can get an Image a uImage etc, so I guess it will be a matter of providing this the vmlinus I get along with the initrd I got from teh rootfs.img, will see how it goes. But for now my problem is really to have more disc space either in rootfs ot in an additional disc.
Any help appreciated.
Cheers, Phi
Hi,
On 1 September 2013 20:33, Phi Debian phi.debian@gmail.com wrote:
Hi All,
Well I got a solution, I took the rootfs.img, truncate 4G, losetup, gparted, then instead of expanding part2 as I did in my prev try, I simply added a partition3, that I formated ext4
I can then boot as before and now I got one more dev I can use to mount my extra data partition.
mkdir /d mount /dev/mmcblk0p3 /d df
Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p2 963288 652152 244988 73% / udev 514152 4 514148 1% /dev tmpfs 103060 176 102884 1% /run none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 515280 0 515280 0% /run/shm none 102400 0 102400 0% /run/user /dev/mmcblk0p3 3030800 4608 2852524 1% /d root@linaro-developer:~#
An happy camper :) I got now to start the NW on a bridge should be a breeze :) Cheers, Phi
On Sun, Sep 1, 2013 at 6:53 PM, Phi Debian phi.debian@gmail.com wrote:
Hi Guru's
I successfully builf my own kernel abd run it for arm64, I try now to do the same trick with arm32.
I need to have a root fs bigger enough to do basic dev in c user code.
I choose latest raring-developper for this. DL vexpress-raring_developer_20130826-443.img.gz
I can then mount it and extract vmlinuz and initrd then boot it like given on some doc pages
qemu-system-arm \ -kernel vmlinuz \ -sd vexp.img \ -M vexpress-a9 \ -cpu cortex-a9 \ -serial stdio \ -m 1024 \ -initrd initrd \ -append 'root=/dev/mmcblk0p2 rw mem=1024M raid=noautodetect console=ttyAMA0,38 400n8 rootwait vmalloc=256MB devtmpfs.mount=0'
From there I got a prompt
root@linaro-developer:~# uname -a Linux linaro-developer 3.11.0-1-linaro-vexpress #1ubuntu1~ci+130822051821-Ubuntu SMP Thu Aug 22 05:54:20 UTC 201 armv7l armv7l armv7l GNU/Linux root@linaro-developer:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p2 963288 652056 245084 73% / udev 514152 4 514148 1% /dev tmpfs 103060 172 102888 1% /run none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 515280 0 515280 0% /run/shm none 102400 0 102400 0% /run/user
I need more disc space for doing dev, so I investigated 2 options
if you take a look to the instructions published in the release or the wiki: http://releases.linaro.org/13.08/ubuntu/vexpress
you'll notice the pre-built image is generated using linaro-image-tools.
you can create a pre-built image with the following command: linaro-media-create --image-file vexpress-raring_developer_20130826-443.img --image-size 3G --dev vexpress --hwpack hwpack_linaro-vexpress_20130826-443_armhf_supported.tar.gz --binary linaro-raring-developer-20130826-474.tar.gz
Adjust --image-size option as you need.
- Make the rootfs bigger
I truncate 4G the rootfs.img (rootfs.img is a short for vexpress-raring_developer_20130826-443.img) then I losetup the rootfs.img and use gparted to extend the ext4 partition.
Alas next reboot fail, a bit like if /dev/mmcblk0p2 has an hardcoded size...
- have an extern (user data) disc, and have it mounted
So I trucate phi.img 4G, mkfs it, and try to mount it, but I got no idea what /dev to use to mount it, and got no idea what could be given in the qemu runstring to ask for one more disc in the HW description.
Later on I would need to boot my own kernel, I tried the build from source path, all goes fine and I can get an Image a uImage etc, so I guess it will be a matter of providing this the vmlinus I get along with the initrd I got from teh rootfs.img, will see how it goes. But for now my problem is really to have more disc space either in rootfs ot in an additional disc.
Any help appreciated.
Cheers, Phi
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Hi Fathi
On Mon, Sep 2, 2013 at 6:35 AM, Fathi Boudra fathi.boudra@linaro.org wrote:
if you take a look to the instructions published in the release or the wiki: http://releases.linaro.org/13.08/ubuntu/vexpress
you'll notice the pre-built image is generated using linaro-image-tools.
you can create a pre-built image with the following command: linaro-media-create --image-file vexpress-raring_developer_20130826-443.img --image-size 3G --dev vexpress --hwpack hwpack_linaro-vexpress_20130826-443_armhf_supported.tar.gz --binary linaro-raring-developer-20130826-474.tar.gz
Adjust --image-size option as you need.
Jeez I played a bit with linaro-media-create, the wiki don't provide much pages about it I consulted this page https://wiki.linaro.org/Platform/DevPlatform/Ubuntu/ImageInstallation
And the example given with --mmc was a bit of a deterrent for my qemu setup and the page vaguely said that it should be easy to do for qemu, then link to https://wiki.linaro.org/Resources/HowTo/Qemu That is no more verbose :) and provide ref ti file back in 2011 and don't speak about --image-size :)
Well I will give your solution a try, I am pretty sure it will work fine. The solution I found by successive approximation as about the same as the later qemu link, i.e mount part to extract vmlinuz/initrd, I use gparted (command line would do the same) to create my /d partition. so basically all works fine. I can even bridge it and apt-get update it. I haev not buoot my own build for now as I am working mon app build env a the moment, i.e I am more on the xbuild chain, still have my runtime qemu'ed for some functional testing.
Thanx again for your reply, I will keep it in my cheat cheat :) Cheers, Phi