View Full Version : Vogue Android in depth Rom Building guide requested
ali3nfr3ak
11th November 2009, 07:10 AM
Hi all , i am a new android user and would like to have a go a biulding some custom roms, Now i have no experiene with linux.. well the last 3days.. lol, and i have read the how to make a hero rom txt from the vogue - hero site and while that maybe suffucient for others to get up and away with rom building its not for me, So i am wondering if there is a more in depth step by step guide for not only a new android user but a new linux user also, would be very much appreciated :D
ok so there hasnt been much of a respone so ill share the steps i have so far
1. I installed Ubuntu linux ( Dual Boot with win 7 )
2. Needed to know how to install Squashfs did a search on google found this
A) open terminal window ( Ubuntu start menu, accessories )
B) type: sudo aptitude search squashfs , u will be prompted for password
this is what happened with mine:
ali3nfr3ak@ali3nfr3ak:~$ sudo aptitude search squashfs
[sudo] password for ali3nfr3ak:
i squashfs-tools - Tool to create and append to squashfs filesystems
C) type this command:sudo apt-get install squashfs-tools
My Dialog ( ihad to uninstall and then reinstall to get this so mine will be alittle different to
yours
ali3nfr3ak@ali3nfr3ak:~$ sudo apt-get install squashfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
squashfs-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/122kB of archives.
After this operation, 319kB of additional disk space will be used.
Selecting previously deselected package squashfs-tools.
(Reading database ... 115049 files and directories currently installed.)
Unpacking squashfs-tools (from .../squashfs-tools_1%3a4.0-1_i386.deb) ...
Processing triggers for man-db ...
Setting up squashfs-tools (1:4.0-1) ...
ali3nfr3ak@ali3nfr3ak:~$
C) all done close terminal i type: exit
3: Next for testing purposes download this Google-Android-Ion-v1.5-2009-10-23-sdcard-not-google-apps and etract this and placed a copy of system.sqsh into it s own directory
4: i then opened another terminal window ( easier to copy and paste show you what my window looks like
ali3nfr3ak@ali3nfr3ak:~$ dir
Desktop Documents Downloads examples.desktop HERO Music Pictures Public Templates Videos
ali3nfr3ak@ali3nfr3ak:~$ cd HERO
ali3nfr3ak@ali3nfr3ak:~/HERO$ dir
Testing
ali3nfr3ak@ali3nfr3ak:~/HERO$ cd Testing
ali3nfr3ak@ali3nfr3ak:~/HERO/Testing$ dir
system.sqsh
ali3nfr3ak@ali3nfr3ak:~/HERO/Testing$ unsquashfs system.sqsh
Parallel unsquashfs: Using 2 processors
650 inodes (1408 blocks) to write
[================================================== ================================================== =================================================-] 1408/1408 100%
created 650 files
created 45 directories
created 0 symlinks
created 0 devices
created 0 fifos
ali3nfr3ak@ali3nfr3ak:~/HERO/Testing$ dir
squashfs-root system.sqsh
ali3nfr3ak@ali3nfr3ak:~/HERO/Testing$
basicially u can use the same commands as windows but with out the / and the spelling and Capitial letters have to be exact
Windows
/dir
/cd hero
Linux
dir
cd HERO
A new folder is created called squashfs-root which has all the files/ folders from the system.sqsh u just decompressed ( my description )
and that is a far as i have got so far
clockworx
11th November 2009, 01:27 PM
Hi all , i am a new android user and would like to have a go a biulding some custom roms, Now i have no experiene with linux.. well the last 3days.. lol, and i have read the how to make a hero rom txt from the vogue - hero site and while that maybe suffucient for others to get up and away with rom building its not for me, So i am wondering if there is a more in depth step by step guide for not only a new android user but a new linux user also, would be very much appreciated :D
If you still have that txt, would you mind hosting or pasting it here? I've been asking around for a copy and everyone seems to have lost it.
bangout
11th November 2009, 03:12 PM
If you still have that txt, would you mind hosting or pasting it here? I've been asking around for a copy and everyone seems to have lost it.
same here. trying to make my first rom also
ali3nfr3ak
11th November 2009, 05:27 PM
How-To-Make-A-Hero-ROM.TXT attached :D
clockworx
11th November 2009, 05:35 PM
MUCH appreciated!
ali3nfr3ak
12th November 2009, 02:00 AM
updated 1st post with my very linux noob steps lol
ali3nfr3ak
13th November 2009, 01:43 AM
having alittle trouble anyone can someone shed some light please
root@king0fkings:/home/ali3nfr3ak/Downloads/HERO2# genext2fs -d ./system -b 180000 -a system.ext2
genext2fs: invalid option -- 'a'
genext2fs: Note: options have changed, see --help or the man page.
root@king0fkings:/home/ali3nfr3ak/Downloads/HERO2# genext2fs -help
Usage: genext2fs [options] image
Create an ext2 filesystem image from directories/files
-x, --starting-image <image>
-d, --root <directory>
-D, --devtable <file>
-b, --size-in-blocks <blocks>
-i, --bytes-per-inode <bytes per inode>
-N, --number-of-inodes <number of inodes>
-m, --reserved-percentage <percentage of blocks to reserve>
-g, --block-map <path> Generate a block map file for this path.
-e, --fill-value <value> Fill unallocated blocks with value.
-z, --allow-holes Allow files with holes.
-f, --faketime Set filesystem timestamps to 0 (for testing).
-q, --squash Same as "-U -P".
-U, --squash-uids Squash owners making all files be owned by root.
-P, --squash-perms Squash permissions on all files.
-h, --help
-V, --version
-v, --verbose
and
root@king0fkings:/home/ali3nfr3ak/Downloads/HERO2# mkdir rootfs-mount
root@king0fkings:/home/ali3nfr3ak/Downloads/HERO2# mount -o loop rootfs.img
mount: can't find rootfs.img in /etc/fstab or /etc/mtab
jamezelle
13th November 2009, 02:07 AM
having alittle trouble anyone can someone shed some light please
root@king0fkings:/home/ali3nfr3ak/Downloads/HERO2# genext2fs -d ./system -b 180000 -a system.ext2
genext2fs: invalid option -- 'a'
genext2fs: Note: options have changed, see --help or the man page.
root@king0fkings:/home/ali3nfr3ak/Downloads/HERO2# genext2fs -help
Usage: genext2fs [options] image
Create an ext2 filesystem image from directories/files
-x, --starting-image <image>
-d, --root <directory>
-D, --devtable <file>
-b, --size-in-blocks <blocks>
-i, --bytes-per-inode <bytes per inode>
-N, --number-of-inodes <number of inodes>
-m, --reserved-percentage <percentage of blocks to reserve>
-g, --block-map <path> Generate a block map file for this path.
-e, --fill-value <value> Fill unallocated blocks with value.
-z, --allow-holes Allow files with holes.
-f, --faketime Set filesystem timestamps to 0 (for testing).
-q, --squash Same as "-U -P".
-U, --squash-uids Squash owners making all files be owned by root.
-P, --squash-perms Squash permissions on all files.
-h, --help
-V, --version
-v, --verbose
and
root@king0fkings:/home/ali3nfr3ak/Downloads/HERO2# mkdir rootfs-mount
root@king0fkings:/home/ali3nfr3ak/Downloads/HERO2# mount -o loop rootfs.img
mount: can't find rootfs.img in /etc/fstab or /etc/mtab
first no -a it doesn't work
then mount it for me i made the directory /mnt/system
[CODE]sudo mkdir /mnt/system
sudo mount -o loop /whereever/system.ext2 /mnt/system
then make sure you do not have squashfs-tools 4.0 it wont work
make the sqsh file
sudo mksquashfs /mnt/system system.sqsh
say rootfs.img was on your desktop
sudo mkdir /mnt/rootfs
sudo mount -o loop /home/king0fkings/desktop/rootfs.img /mnt/rootfs
ali3nfr3ak
13th November 2009, 06:06 AM
first no -a it doesn't work
then mount it for me i made the directory /mnt/system
[CODE]sudo mkdir /mnt/system
sudo mount -o loop /whereever/system.ext2 /mnt/system
then make sure you do not have squashfs-tools 4.0 it wont work
make the sqsh file
sudo mksquashfs /mnt/system system.sqsh
say rootfs.img was on your desktop
sudo mkdir /mnt/rootfs
sudo mount -o loop /home/king0fkings/desktop/rootfs.img /mnt/rootfs
Ok thank you very kindly.. just got in from milking the cows, so ill give this a blast :)
zenulator
13th November 2009, 06:13 AM
genext2fs -d ./system -b 180000 -a system.ext2
the -a does work when you use the right genext2fs from the sdk or from pulling the android source and building it. the genext2fs i had uploaded uses the -a but you need to have it in your path before the generic genext2fs gets used or directly execute it. i keep it in /root/bin and execute it from there.
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
the -a is for making android specific images and sets correct permissions
http://dl.dropbox.com/u/2888561/porting/genext2fs
make sure you set it to executable
chmod 755 genext2fs
ali3nfr3ak
13th November 2009, 09:12 AM
genext2fs -d ./system -b 180000 -a system.ext2
the -a does work when you use the right genext2fs from the sdk or from pulling the android source and building it. the genext2fs i had uploaded uses the -a but you need to have it in your path before the generic genext2fs gets used or directly execute it. i keep it in /root/bin and execute it from there.
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
the -a is for making android specific images and sets correct permissions
http://dl.dropbox.com/u/2888561/porting/genext2fs
make sure you set it to executable
chmod 755 genext2fs
hey there thanks for the info , i cannot get this command to work :
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
i worked out how to get root on linux, copied genext2fs into /root/bin did this command chmod 755 genext2fs i dunno what to try now
root@king0fkings:~/Downloads/HERO2# ~/bin/genext2fs -d ./system -b 180000 -a system.ext2
bash: /root/bin/genext2fs: No such file or directory
root@king0fkings:~/Downloads/HERO2# chmod 755 genext2fs
root@king0fkings:~/Downloads/HERO2# ~/bin/genext2fs -d ./system -b 180000 -a system.ext2
bash: /root/bin/genext2fs: No such file or directory
im lost
jamezelle
13th November 2009, 09:39 PM
hey there thanks for the info , i cannot get this command to work :
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
i worked out how to get root on linux, copied genext2fs into /root/bin did this command chmod 755 genext2fs i dunno what to try now
root@king0fkings:~/Downloads/HERO2# ~/bin/genext2fs -d ./system -b 180000 -a system.ext2
bash: /root/bin/genext2fs: No such file or directory
root@king0fkings:~/Downloads/HERO2# chmod 755 genext2fs
root@king0fkings:~/Downloads/HERO2# ~/bin/genext2fs -d ./system -b 180000 -a system.ext2
bash: /root/bin/genext2fs: No such file or directory
im lost
1 go to package manager and remove genext2fs
2 login as root and copy zens genext2fs to /bin/
3 open terminal and type in
chmod 755 /bin/genext2fs
4 logout, then login as normal
5 it should work like so
genext2fs -d ./system -b 180000 -a system.ext2
I JUST DID IT SO I KNOW IT WORKS!!1
ali3nfr3ak
13th November 2009, 11:04 PM
1 go to package manager and remove genext2fs
2 login as root and copy zens genext2fs to /bin/
3 open terminal and type in
chmod 755 /bin/genext2fs
4 logout, then login as normal
5 it should work like so
genext2fs -d ./system -b 180000 -a system.ext2
I JUST DID IT SO I KNOW IT WORKS!!1
ok thank you ill try that, thanks for all the help to by the way, its been a trying process learning how to use linux and build android roms, so thank u :D
ali3nfr3ak
14th November 2009, 01:00 AM
ok got everything working and managed to create a system.sqsh to load, using msmisson ext2 method i tried to load it but has error:
mount: mounting /dev/block/loop1 on/sdcard/temp failed Invalid argument
failed
failed to mount /system
/bin/still (maybe ??? cant read properly) can't access tty: job control turned off
im basicially dumping Ion bundle and remaking it with no changes
jamezelle
14th November 2009, 03:09 AM
big problem!!!!!!!
Selecting previously deselected package squashfs-tools.
(Reading database ... 115049 files and directories currently installed.)
Unpacking squashfs-tools (from .../squashfs-tools_1%3a4.0-1_i386.deb) ...
Processing triggers for man-db ...
Setting up squashfs-tools (1:4.0-1) ...
ali3nfr3ak@ali3nfr3ak:~$
4.0 will not work!!!!!!!!
1 do sudo apt-get remove squashfs-tools
2 download this HERE (http://ftp.us.debian.org/debian/pool/main/s/squashfs/squashfs-tools_3.3-7_i386.deb)
jamezelle
14th November 2009, 03:38 AM
genext2fs -d ./system -b 180000 -a system.ext2
the -a does work when you use the right genext2fs from the sdk or from pulling the android source and building it. the genext2fs i had uploaded uses the -a but you need to have it in your path before the generic genext2fs gets used or directly execute it. i keep it in /root/bin and execute it from there.
~/bin/genext2fs -d ./system -b 180000 -a system.ext2
the -a is for making android specific images and sets correct permissions
http://dl.dropbox.com/u/2888561/porting/genext2fs
make sure you set it to executable
chmod 755 genext2fs
damn zen i bet that has been half my battle:rolleyes: with the power wake ups. i just ported a rom last night and got the power wakeups.
recreated it today with your genext2fs with -a and it booted right up:rolleyes: thanks
clockworx
14th November 2009, 06:21 AM
I wanted to try testing some stuff using the emulator (not hardware related, obviously). Does anyone know if there a standalone tool for making yaffs2 filesystems (for system.img), or is my only option to install android source and compile it all?
ali3nfr3ak
14th November 2009, 06:25 AM
big problem!!!!!!!
Selecting previously deselected package squashfs-tools.
(Reading database ... 115049 files and directories currently installed.)
Unpacking squashfs-tools (from .../squashfs-tools_1%3a4.0-1_i386.deb) ...
Processing triggers for man-db ...
Setting up squashfs-tools (1:4.0-1) ...
ali3nfr3ak@ali3nfr3ak:~$
4.0 will not work!!!!!!!!
1 do sudo apt-get remove squashfs-tools
2 download this HERE (http://ftp.us.debian.org/debian/pool/main/s/squashfs/squashfs-tools_3.3-7_i386.deb)
ok i see that , i saw that i had 4 but i guess when you said squashfs 4 wouldnt i guess i literally took it as it wouldnt work lol, not that the command would still work but the .sqsh not load , sorry bout that, but also once again thank you :D
ali3nfr3ak
14th November 2009, 08:36 AM
woohoo got a booting image ,lol keeps telling me process android.process.acore has stopped unexpectedly, lots of times probably all those google packages i removed ...oh well i have a start now :D thanks jamezelle without your help wouldnt have happened
loserskater
18th November 2009, 12:24 AM
Thought you might want to take a look at this little script I made: ROM porting (http://forum.xda-developers.com/showthread.php?t=585452)
bchi49
19th December 2009, 03:01 AM
Which version of squashfs would work if the version 4.0 doesn't?
http://sourceforge.net/projects/squashfs/files/squashfs
bchi49
19th December 2009, 03:06 AM
How-To-Make-A-Hero-ROM.TXT attached :D
This command doesn't work on Mac OS 10.6.2, can it be done on Mac?
mount -o loop system.ext2 system-image-mount
jamezelle
19th December 2009, 03:25 AM
Which version of squashfs would work if the version 4.0 doesn't?
http://sourceforge.net/projects/squashfs/files/squashfs
http://ftp.us.debian.org/debian/pool/main/s/squashfs/squashfs-tools_3.3-7_i386.deb
bchi49
19th December 2009, 03:28 AM
http://ftp.us.debian.org/debian/pool/main/s/squashfs/squashfs-tools_3.3-7_i386.deb
Thanks. Is there's a version that's compatible with Mac OS 10.5+ ?
Thanks again.
jamezelle
19th December 2009, 03:31 AM
Thanks. Is there's a version that's compatible with Mac OS 10.5+ ?
Thanks again.
not sure i use ubuntu, sorry :o
bchi49
19th December 2009, 03:42 AM
not sure i use ubuntu, sorry :o
np, thanks. I'll keep looking.
ali3nfr3ak
19th December 2009, 04:44 AM
nevermind to slow
Newbie16
30th December 2009, 05:06 PM
How do you create a squash fs file from a directory which matches the kernel's squashfs version?
enatefox
23rd January 2010, 03:55 AM
newbie16, any sqsh image is made with "mksquashfs ./directory my.sqsh" regardless of file structure.
bchi49, squashfs-tools versions 3.1, 3.3 and 3.7 are supported.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.