here a perlscript, showing how to decode the new nbf format htc is using.
Can you update the xda3nbftool so that it would support a new format? Not everyone has perl installed.
I'm too lazy to do this myself
I started making it more universal, supporting all known nbf's ... but at the moment don't have the time to finish it.
Hi guys.
Can any of you tell me how the checksum is calculated?
I've now managed to decode the header and Fat16 thanks to the scripts you've provided.
After this, I've mounted the Fat16 partition and added some files.
I now need to recalculate the checksum for the extended rom but do not how to do it. I need to update the header with this checksum, and use it for decoding the Fat16 partition.
Does this make any sence?
Thanx.
Related
hi all
anyone can help us to convert nb1 file format to nbf file format ?
thanks.
While booting into Android on my HTC Touch I am encountering some issues. Here is where I think things start going wrong.
"Rootfs loaded.
Checking for partition...
Using system image in /sdcard/android
e2sck 1.41.4 (27-Jan-2009)
ext2fs_check_if_mount: No such file or directory while determining whether /dev/block/loop0 is mounted.
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/block/loop)
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
mount: mounting /dev/block/loop0 on /data failed: Invalid argument
Failed
Failed to mount /data
/bin/sh: can't access tty: job control turned off
/"
I am using the file versions found here http://sourceforge.net/projects/androidhtc/files/latest
Any help is very much appreciated. Thanks!
if your running it from the SD card it sounds like the card needs to be reformatted
That makes sense. Sorry I am new to all this... can you tell me what format it needs to be in? I'll figure it out from there.
Stingray88 said:
That makes sense. Sorry I am new to all this... can you tell me what format it needs to be in? I'll figure it out from there.
Click to expand...
Click to collapse
fat32 is what you need to format it at.
It is in fat32 and I've reformatted multiple times, still doesn't work.
Are you sure it doesn't have to be in ext2? The error messages I get say it's looking for ext2...
EDIT: Yea there has to be more to this than just having it in FAT32 because I just tried 3 different cards all in FAT32. Can anyone help me out here?
did you make sure to rename the system, zimage and rootfs files??
I got it working!
I'm really not sure what it is that I was doing wrong before. I just kept trying the same things... and it finally worked this time.
Linux boot hangs
The text is far too small to read, and much of it is in non alphanumeric characters, but I am able to make out that something hangs for too many seconds.
I have tried more than one version for the Verizon Vogue variant.
I would like to get it to run. Then maybe even flash it.
using haret and the wing linux kernel an openmoko image boot on opal!!
i find all on open-nandra web site
but using an ext2 partition don't boot
you must make an ext3 partition
thanks a lot to marek(open nandra) and the wing linux team
how to:
Your SD card should have 2 partitions:
- fat
- ext3
extract the attached haret.7z to FAT partition of SD card
extract rootfs to ext3 partition
run haret.exe and wait some time (you should see angstrom splash screen)
do the screen calibration (if the phone freeze soft reset it relaunch haret)
now you are in openmoko
thanks to open-nandra and winglinux team
Hi... great news. Do you know what works with this OS in opal? Wifi, sound, etc ...?
I can't find, how to split sd cart to partitions! Did U get that?
thanks friend
here's a totarial for making the memory sd to 2 partitions
get this app to make ur sd, 2partitions:
MiniTool Partition Wizard Professional Edition 5.2
password is: " pirate.scar "
then see this video to understand how to work with that:
Video download link
in this step i used a linux os on pc because windows doesn't support ext format
if you couldn't past anything on ext format then format that part again in linux with EXT3 format
follow gp.triple totarial.....
enjoy
robertbins said:
Hi... great news. Do you know what works with this OS in opal? Wifi, sound, etc ...?
Click to expand...
Click to collapse
illass said:
I can't find, how to split sd cart to partitions! Did U get that?
Click to expand...
Click to collapse
Mr.zeus said:
thanks friend
did u test that? u mean that
kernel + haret : open-moko-kernel-wizard.tar.bz2
rootfs : openmoko-devel-image-glibc.rootfs.tar.bz2
work on opal?
Click to expand...
Click to collapse
the function are the same of winglinux (no audo - no wifi - no bt - etc...) becouse the kernel is the same
for making a partition you can use a live cd of linux like ubuntu
and yes i test it on my opal and its work
for booting it you must keep the default txt and change the mtipe
and use the zimage of winglinux package
tomorrow i'll upload a zip whit haret default and zimage
My device do not see microSD after spliting it in two partitions! Fat and Ext3! Windows can see only fat partition! Linux see bouth (coz i creat them in linux)! need HELP!
illass said:
My device do not see microSD after spliting it in two partitions! Fat and Ext3! Windows can see only fat partition! Linux see bouth (coz i creat them in linux)! need HELP!
Click to expand...
Click to collapse
hi change the partition order
the first in fat
and the second in ext3
windows see only the first partition in device
"hi change the partition order
the first in fat
and the second in ext3
windows see only the first partition in device "
Yes! But Opal don't see nothing!
illass said:
"hi change the partition order
the first in fat
and the second in ext3
windows see only the first partition in device "
Yes! But Opal don't see nothing!
Click to expand...
Click to collapse
strange..a windows pc can see your fat partition?
Noup! i try all of wariations!
illass said:
Noup! i try all of wariations!
Click to expand...
Click to collapse
if you can read the card from a pc (win o linux)
make a backup of your data and after try to format all the card to one fat partition
the card is ok? put the card into another device...
totarial for making sd to 2partitions and move files to ext3
http://forum.xda-developers.com/showpost.php?p=10077739&postcount=4
see i created two partitions: FAT32 , EXT3
i extracted rootfs to ext3 but there was an eror that all files didn't extracted to sd
i also copied rootfs.tar to ext3
after runnig haret, in black screen the showed following eror:
Root-NFS: no NFS server available, giving up
...
VFS: cannot open root device "mmcb1KOP2' or unknown - blocked (2,0)
plz append a corect "root=" boot option ; here are the available partitions:
kernel panic - not syncing: VFS : unable tp mount roof fs unknown-blocked (2,0)
Click to expand...
Click to collapse
Mistery!
did all that from the description! however, did not get it to life!
I create partitions with that mini tool. Copy all of that files what i need! Windows 7 can see fat partition and i can do with it what i want, but in my WinMob device HTC Touch Viva((opal) using Jogan2 EVO-B rom) sd card is invisible!
Linux see all of partitions.
Why Win7 see that card but WINMOB don't?
illass said:
did all that from the description! however, did not get it to life!
I create partitions with that mini tool. Copy all of that files what i need! Windows 7 can see fat partition and i can do with it what i want, but in my WinMob device HTC Touch Viva((opal) using Jogan2 EVO-B rom) sd card is invisible!
Linux see all of partitions.
Why Win7 see that card but WINMOB don't?
Click to expand...
Click to collapse
gp is sleep
are u sure? actually i made fat32 & ext3
opal see fat32 .... maybe u should try fat32 not fat (anyway i think opal see fat)
Mr.zeus said:
see i created two partitions: FAT32 , EXT3
i extracted rootfs to ext3 but there was an eror that all files didn't extracted to sd
i also copied rootfs.tar to ext3
after runnig haret, in black screen the showed following eror:
Click to expand...
Click to collapse
i'm on holliday
you must unzip the file on the ext3 partition
try to download the file again
ok... i try to edit sd from Device not from reader!
But now when i run haret i have the same problem
Root-NFS: no NFS server available, giving up
...
VFS: cannot open root device "mmcb1KOP2' or unknown - blocked (2,0)
plz append a corect "root=" boot option ; here are the available partitions:
kernel panic - not syncing: VFS : unable tp mount roof fs unknown-blocked (2,0)
?
Will try to reformat the partition and recopy files!
no...something is wrong in default.txt
i tried many texts but could't rin
haret cannot find "mmcb1KOP2"
maybi we need to give a correct name of partition! Or special label!
any new? g.triple can u see again what's the problem?
i also have extracting problem with 7.zip
Hey forumers, first post, hope someone can help!
So I'm running Phiremod 6.3 (latest stable) as a custom ROM install on a Nook 1.2 (repartitioned to 5GB /data) and I have a nice big 32GB SD card. I want to put large video files (.vob, 4-6GB) on the SD card.
FAT32 won't handle that, so I formatted the SD card as ext4 (Windows Vista user, so kinda proud of myself for that
Nook won't see the SD card. Back to google, and I read that the first partition needs to be FAT32, then the second (ext4) partition will be mounted as /sd-ext.
My question is - if I repartition the SD card to a FAT32 first partition with a second ext4 (or ext3, that will work too, max file size is 16GB) partition, will I be able to use the ext4 partition to store and access my large video files?
I've been researching, and I'm confused - is there a CM7/Phiremod install/option specific to ext4, or should it be able to see it "naturally"? Does the ext4 partition become an expansion of the /system partition, as some posts suggest? All these questions, and more, can HOPEFULLY be answered by some kind soul flitting across these boards!
And if anyone has a suggestion about a better place to post this question, please let me know!
Cheers
PatMan
Update: I put a 1GB FAT32 partition on the card, then formatted the rest as ext4. I could then mount the ext4 partition using the command line on the Nook, and I could see all the files.
HOWEVER, when I go to play a ~5GB file, it only plays the first 20 minutes. Sound is synced, all files are DVD rips therefore 720, looks fantastic - but why is it not playing the whole file? I'm using both arcMedia and RockPlayer, same issue in both. Using different video files (seems to be OK with files <2GB), same issue. Files can be played on other machines, so it's not the files.
Is there some sort of Android system file size limitation causing the problem? I'm pulling my beard out here, any help greatly appreciated!!
I bypassed dead internal memory on a GT-I9000M.
Symptoms:
- Your GT-I9000M is not booting or bootlooping no matter what firmware you are flashing it with.
- In recovery, you are seeing I/O errors on /dev/block/mmcblk0p1
- Trying to repartition and format the internal storage with fdisk or parted and mkfs.whatever fails.
To recover:
- Partition and format your 16GB+ external microSD with at least two primary partitions, vfat on the first one and rfs (or whatever fs is supported by your firmware) on the second one.
- Acquire a stock ROM, in my case I used JL2
- untar the PDA portion of your ROM of choice (you want zImage and factoryfs.rfs)
- Extract initramfs from zImage ( https://github.com/mistadman/Extract-Kernel-Initramfs )
- grep for /dev/block/mmcblk, there should be 4 .rc files containing references to it as well as within the binary file /init.
- use a text editor to replace all occurances of "mmcblk0" with "mmcblk1" (and vice-versa if you feel so inclined) in the .rc files.
- use a hex editor to replace "mmcblk0" with "mmcblk1" in /init.
- create cpio archive of your modified initramfs with `find . | cpio -H newc -o > ../initramfs.img`
- repack kernel and initramfs ( http://forum.xda-developers.com/showthread.php?t=789712 ), you should have a new_zImage now.
- Mount the factoryfs.rfs as a loop `mount -o loop,rw -t vfat factoryfs.rfs /mnt/loop`
- Modify vold.fstab - this topic is well covered elsewhere (swap sdcard and sdcard1, swap mount points), then umount your loop
- Flash factoryfs.rfs and zImage using your favorite method.
That's it! Your phone will now boot and complain forevermore that the external memory is corrupt. ToDo: use third partition on external microSD as external_sd...
To recap:
We're telling android's init and whatever .rc scripts contain references to the broken partitions on the internal storage /dev/block/mmcblk0 to point to an appropriate partition on the external microSD card /dev/block/mmcblk1. You can actually do anything you want with the partition structure as long as it's consistent throughout init and in vold.fstab. Different ROMs do it differently.
I am not responsible for misuse of your hex editor, lack of backups, etc. I highly recommend the unbrickable mod.
Corrupt internal storage
Hi b0nafide,
My internal storage is also corrupted (i9000). I'm getting the same errors you descripe in your post. I'm trying your solution in wich you install android on your external SD. I bought a 8GB cat10 SD card....
But I'm stuck at the step: 'Extract initramfs from zImage ( [//github.com/mistadman/Extract-Kernel-Initramfs] )'. When I start the script nothing happens, except for my terminal closing. I'm using a virtualy installed Ubuntu distribution (Backtrack 5).
Do you have a tip? Perhaps you can help me through Teamviewer???
Hope do hear from you... I want to use my phone again
Greatings, Eldoro
My sgs is dead.
Please b0nafide, can you upload this modificated kernel (zImage and factoryfs.rfs) just for noobs like me?
Yes that woud be great. ..
Sent from my GT-I9300 using xda app-developers app
Here also an i9000 with reboot
Have done allot, stock rom, other pit files...
Is there a way to do this with a i9000 ?
and yes an image for us ?
and is the phone then normale... or is the internal storage still broken ?
Thanxs
Anyone can help us?
grimorct said:
Anyone can help us?
Click to expand...
Click to collapse
???
Anyone with working solution for this on i9000? I'll try to pack JW4 following this guide
grozni said:
Anyone with working solution for this on i9000? I'll try to pack JW4 following this guide
Click to expand...
Click to collapse
Yesterday, I made a flasheable pack of JW4, but it doesn't run. Now i'ḿ trying to modify JVU, but a strange thing happen when i'm repacking zImage...the script spends a lot of time in order to make it, and i can't be able to verify the correct pocess of new_zImage.
It's my first post in XDA, because normally I use HTCMANIA... I'm Spanish...and my English it isn't so good. Even, I should said that it isn't my phone...i'm repairing a friend's phone, so it's difficult for me to explain or speak about different ROMs or kernels....sorry
It's very important to advice that the scripts posted should be modified to get it run...because I found different problems to execute on Ubuntu.
Now it's 1:30 am...i'm trying "ext_JVU"....tomorrow i'll tell you the results.
Anyway i'll try to upload it, to reach different conclusions...
sesetxu said:
Anyway i'll try to upload it, to reach different conclusions...
Click to expand...
Click to collapse
Please do, I'll try flashing immediately and get back with results. How did you format external sd card?
I'm willing to try aswell... almost gave up hope.
Sent from my GT-I9300 using xda app-developers app
Hello friends!!!
I've the CODE (PDA file in ODIN) modified to execute android in ext-sdcard.
I do it as the first post said....but it doesn't run for me...
Anyway here is...Yo must get the MODEM and CSC os the stock firmware
XDA block the urls for me...for this reason its haven´t the WWW ...
Stock firmware..only to get MODEM and CSC: 4shared.com/zip/W1NeYAPA/I9000XXJVU_I9000OXAJVU_OXA.html?
Code modified to run in sdcard external: rapidshare.com/files/3786190721/ext_XXJVU.tar.md5
To solve my problems, i'll try to generate an CWMfile flasheable to try it...but now i'm hopeless....
Good luck men!!
sesetxu said:
Good luck men!!
Click to expand...
Click to collapse
Great work men!! It works for me. After flashing I got error in picture I posted (same error as before when writing to internal storage with stock rom). I just hit reboot but honestly I was not thinking it will boot. Thing I noticed when I start camera I get message turn off usb storage first. My files app shows no sd card inserted. How did you format your sd card? I'm using 8gb class 6 sd card
grozni said:
Great work men!! It works for me. After flashing I got error in picture I posted (same error as before when writing to internal storage with stock rom). I just hit reboot but honestly I was not thinking it will boot. Thing I noticed when I start camera I get message turn off usb storage first. My files app shows no sd card inserted. How did you format your sd card? I'm using 8gb class 6 sd card
Click to expand...
Click to collapse
I've modified all to use an sdcard with the folowing partitions:
1st primary fat32 which is internal sd card (4 gb)
2nd primary reiserfs which is /data (2 gb)
3rd primary fat 32 as external sd card
Try it...and I am happy to help you
sesetxu said:
I've modified all to use an sdcard with the folowing partitions:
1st primary fat32 which is internal sd card (4 gb)
2nd primary reiserfs which is /data (2 gb)
3rd primary fat 32 as external sd card
Try it...and I am happy to help you
Click to expand...
Click to collapse
I will try this layout. At first I prepared sdcard with 2 partitions which currently boot into Android but storage isn't working:
1st primary fat32 (6gb)
2nd primary ext4 (2gb)
You said raiserfs, should be that rfs type partition?
Update: I just noticed that both partition on my sdcard are fat32. First partition which should be internal storage I had to format again (not sure why). After this internal storage is still not available when in Android. I guess some mounting point is not good. Second fat32 partition is where the data is I guess (picture attached)
Exactly the same result as grozni. Same errors upon installing but booting into android. Amazing work! Also formatted 2 partitions. WiFi also not working btw. Hangs on obtaining ip...
Sent from my GT-I9300 using xda app-developers app
eldoro said:
Hangs on obtaining ip...
Click to expand...
Click to collapse
Same here
Is imposible to start Andoird without a rfs partition to mount /data (or ext4, for ROMs wich has fixed the troubles with ext4/rfs file systems...)
I can´t start the phone, because i get an added problem (my system can't format rfs data..but i don't know why)
I'm going to review the file /system/etc/vold.fstab who manages the mount points of the internal and external storages.
If anyone gets the correct configuration...please post it..
Tomorrow is Monday...and although I'm Spanish, I have a job (****ing crisis)...and i haven't so much time as weekend
Edit: wifi sockets are created over /data partition, if there is any problem in this partition is probably to get troubles obtaining IP
sesetxu said:
Is imposible to start Andoird without a rfs partition to mount /data (or ext4, for ROMs wich has fixed the troubles with ext4/rfs file systems...)
Click to expand...
Click to collapse
If I understand correctly samsung rfs and reiserfs are not the same thing? Why you use raiserfs on sdcard layout?
sesetxu said:
Edit: wifi sockets are created over /data partition, if there is any problem in this partition is probably to get troubles obtaining IP
Click to expand...
Click to collapse
That is the reason
Update: One more thing I forgot to mention. When I try to format USB storage (internal sd) I get message sd card removed