man[ NITdroid ] - Cookbook: recipe #202, I get an error on every boot about...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

recipe #202: I get an error on every boot about an application in settings failing

Submitter:  Steve J <easternpa>
Submitted:  Sat 07 Feb 2009 01:57:44 PM UTC
   
 
Category:  Errors Importance:  3 - Normal
Status:  Draft Privacy:  Public
Assigned to:  None Open/Closed:  Open

Sat 07 Feb 2009 01:57:44 PM UTC, recipe preview:  

When installing NITdroid on your tablet, the first partition on your internal SD card must contain a valid filesystem formatted for vfat.

Depending on the installation instructions you may have followed, you may not have successfully reduced the size of the first partition, resulting in a corrupted first partition. Not having a valid first partition will manifest itself in many ways:

- You will receive an error message pop-up at every boot stating that an application in settings has stopped responding. You will have the option of closing the application or waiting for it to resume operation

- When browsing the Software Directory, any time you attempt to install an application, you will see an error stating "No SD Card" and "You must have an SD card inserted in order to download this software"

- If you run the mount command on the tablet via adb, you will not see /dev/block/mmcblkc0p1 mounted. Check logcat and dmesg and look for errors mentioning FAT. You may see "FAT: bogus number of reserved sectors"

- If you flash back to Maemo for any reason, you will see an error stating that the SD card is corrupt or unformatted

All of these errors point to corruption of the first partition during the initial resizing. To correct this and dramatically improve the function of NITdroid on your tablet, you must format the first partition. Don't worry this does not affect your ability to return to Maemo, although it will erase any data and extra programs you had installed under Maemo.

Since you cannot mount or alter the filesystems on the SD card from your Linux host while NITdroid is running, you must first flash back to Maemo to perform this task.

1. Flash your tablet to return to Maemo
2. Boot up into Maemo
3. After reaching the Maemo desktop, connect the tablet to your Linux host using the supplied USB cable
4. Make sure you are root on your Linux host
5. Run the command: watch "dmesg | tail" and keep watching the output, updating every 2 seconds, until you see the results of a scan appear. In particular, look for Vendor: NOKIA.
6. Locate the two "scsi removable disks" that your system has detected as a result of scanning the tablet. Make note of the first of the two new removable disks detected. Depending on the configuration of your Linux host, the first disk that gets detected is usually "sda", but the "a" may be any other letter. It all depends on your hardware. Just make note of the first one, and press Ctrl-C to exit the watch.
7. Run fdisk -l (and that's a lower case L). You will see at least two sections in the report. Locate the section that is specifically referring to the first drive whose designation you noted in step 6 (usually "sda"). If you followed the instructions properly, you should see three partitions defined on "Disk /dev/sda". The first partition, labeled "/dev/sda1" should show "W95 FAT32" under the "System" column. It may also show "W95 FAT32 (LBA)" and this is fine.
8. Now to format just the first partition. Make sure you are root (your command prompt must end with "#") and run:

mkfs.vfat /dev/sda1

Be sure to replace the "a" in "/dev/sda1" with the identifier that corresponds to the FIRST disk detected when you attached your tablet. After running the command, detach the USB cable, power down the tablet, and reflash it to NITdroid.

All of the error conditions described above should now be fixed.

Steve J <easternpa>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by easternpa (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code