Reply
Thread Tools
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#1
Rather than always flashing a 4 years old Nokia stock, update, upgrade to CSSU, remove dross and install extra apps, is there a way to prepare a custom image I can flash directly?
 

The Following 5 Users Say Thank You to pichlo For This Useful Post:
panjgoori's Avatar
Posts: 1,236 | Thanked: 1,278 times | Joined on Aug 2011 @ Balochistan
#2
also agree. there should be something with latest CSSU, patches and fixes. if we can create our own device custom image then it will be amazing.
 

The Following User Says Thank You to panjgoori For This Useful Post:
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#3
I am pretty sure one could adapt the information below to fit the projects' needs. I used it to create a custom image for Easy Debian, which worked really well. Dd is magic.

https://help.ubuntu.com/community/LiveCDCustomization
 

The Following User Says Thank You to anthonie For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#4
@pichlo,

I once started doing this, but ended up somewhere else

Here my notes:
Code:
* extract
mkdir parts
cd parts
../flasher-3.5 -F ../RX-51...COMBINED.bin --unpack
cp rootfs.jffs2 ../rootfs.ubi # it is really a ubi image
cd ..
# rm -rf parts

* mount rootfs
su -
modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa \
                 third_id_byte=0x00 fourth_id_byte=0x15
#/dev/mtd0 should be present, if not run "mknod /dev/mtd0 c 90 0"
dd if=rootfs.ubi of=/dev/mtd0 bs=2048
modprobe ubi mtd=0
mkdir mount
mount -t ubifs /dev/ubi0_0 mount

* make a copy
mkdir rootme
rsync -a mount/. rootme/.

* modify stuff -- either manually or using chroot?
...

* generate new image
su -
mkfs.ubifs -m 2048 -e 129024 -c 2047 -r rootme rootme.ubifs

* ubinize the file
cat > ubi.cfg <<EOF
[rootfs]
mode=ubi
image=rootme.ubifs
vol_id=0
vol_size=200MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize
vol_alignment=1
EOF
./ubinize -o rootme.ubi -p 128KiB -m 2048 -s 512 ubi.cfg

* flash the image
su -
./flasher-3.5 -F RX-51_2009SE_10.2010.19-1.002_PR_COMBINED_002_ARM.bin -f
./flasher-3.5 --rootfs rootme.ubi -f
./flasher-3.5 -F RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin -f
Didn't test any of this. It was more like a gedankenexperiment.
 

The Following 3 Users Say Thank You to reinob For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#5
Just came across this:
http://mg.pov.lt/maemo-irclog/%23mae...11-21.log.html
(by master Pali)

and this thread here:
http://talk.maemo.org/showthread.php?t=35554

someday I'll read it (I think I should go to bed now).
 

The Following 6 Users Say Thank You to reinob For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#6
Did you read the 'backupmenu' thread opening post http://talk.maemo.org/showpost.php?p=844029&postcount=1 ???
 

The Following 4 Users Say Thank You to michaaa62 For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#7
Dang, I have read the post and am using BackupMenu quite extensively, but somehow I missed the flashable rootfs image!

Good work, it is half way there!

The next step would be an image with CSSU, both fiasco and vanilla, preferably NOT nuking MyDocs.
 

The Following 2 Users Say Thank You to pichlo For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#8
Yes and no.

Yes is mostly possible. No, when I was last looking at this I was told that if I roll my own image and made it available via the forums there would be 'consequences'.

I then thought, f*'it. I will keep it to myself then.

It is simple enough to generate a rootfs image from a file system image. This in turn can be turned into a flashable image by using fiasco-gen.

As of yet, NO ONE has been able to generate a flashable eMMC image with fiasco-gen. The 'layout' descriptor file format needed for fiasco-gen is unknown and lost to the mists of time. It might be possible that 0xFFFF has the ability to generate eMMC images but I never tried.

What you may consider though is there is actually NOTHING in the eMMC image of any importance. Just the n900 advert, '9' movie trailer and those crap mp3s. So with a bit of hacking it would probably be easy enough to modify the run-once-after-first-boot-script to erase the eMMC and set up the appropriate partitions etc. That way you would only need to flash the rootfs image. There is plenty of space on the rootfs image once you start stripping out all of the BS.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.

Last edited by vi_; 2013-07-05 at 16:57.
 

The Following 5 Users Say Thank You to vi_ For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#9
Originally Posted by pichlo View Post
Dang, I have read the post and am using BackupMenu quite extensively, but somehow I missed the flashable rootfs image!

Good work, it is half way there!

The next step would be an image with CSSU, both fiasco and vanilla, preferably NOT nuking MyDocs.
The notes on the BM page describe a flashable rootfs filesystem. It is just the FS before it is rolled into a NAND image with kernel, CMT firmware, etc.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following 2 Users Say Thank You to vi_ For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#10
Originally Posted by vi_ View Post
What you may consider though is there is actually NOTHING in the eMMC image of any importance.
Are you sure? I now have two (TWO!) phones that failed to flash the eMMC and both look very much like this after the boot. It looks like all the fonts, icons and other GUI stuff is in the eMMC.

Edit: Actually, scrap that. I had flashed Combined and had indeed failed to flash Vanilla but I then flashed the supposedly root-with-backupmenu image mentioned above and that did not end up very well. Flashing Combined again, even with still failed Vanilla, booted OK.

Last edited by pichlo; 2013-07-06 at 00:15.
 

The Following User Says Thank You to pichlo For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:30.