[HD2 Android NAND Development] Daekin:
initrd v42 bug report status

To freak007:

A.

This is bug report status for initrd v42:

- two issues found: nand data switch not working anymore, sd boost makes all data disappear

Here is my test scenario (3 partitions on SD, DHD 1.3s.42):

1. done clean flash with config.txt:

format_ext4=1
nand_data=0
sd_boost=0

2. booted (sorry, have not saved the init.log in this step :o) and changed config to:

format_ext4=0
nand_data=1
sd_boost=1

3. on next boot all data and widgets are gone, here is init.log:

Mon Feb 28 16:48:55 UTC 2011
**************************************
*** DL Desire Series by Dandiest ***
*** freak modifs v13 ***
**************************************
--- Mounting /proc /sys
--- Making devices and variables
--- Loading sdcard
--- Define system config
--- Read config file
--- HD2 NAND version in use
--- Loading system
--- System loaded from Nand ---
--- Modify scheduler
--- 2nd partition found,start loading---
--- load 2nd partition for Nand--
--- sd_boost mod active - mounting as loop device
--- Checking system image /dev/block/mmcblk0p2
--- Mounting fs at /data
--- EXT4 data loaded
**************************************
*** 3rd partition detected ***
*** Last boot - just for checking ***
**************************************
--- ext4 swap mounted in /mnt/tmpdata
/dev/block/mmcblk0p3 on /mnt/extdata type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=60,barrier=1,data=ordered,noauto_da_alloc)
--- Checking system image /mnt/extdata/ext4
--- Mounting fs at /data/data
--- ext4 swap mounted in /mnt/tmpdata
/dev/block/loop6 on /data/data type ext4 (rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered)
--- last check
/dev/block/loop8 on /data type ext4 (rw,nosuid,nodev,noatime,nodiratime,barrier=0,data=ordered) /dev/block/mmcblk0p3 on /mnt/extdata type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=60,barrier=1,data=ordered,noauto_da_alloc) /dev/block/loop6 on /data/data type ext4 (rw,relatime,barrier=0,data=ordered)
-- Swap partition mounted successfully --
--- Normally all is ok
--- EXT4 data loaded
+++ Data-to-SD/EXT4 successfully enabled.
-- Not use Nand optimization --
--- no /cache find, create a default one --
+++ Data-to-SD/EXT4 completed, with the mount status:
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,relatime)
sys on /sys type sysfs (rw,relatime)
/dev/block/mmcblk0p1 on /bootsdcard type vfat (rw,noatime,nodiratime,fmask=0111,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/mtdblock0 on /system type yaffs2 (rw,relatime)
/dev/block/loop8 on /data type ext4 (rw,nosuid,nodev,noatime,nodiratime,barrier=0,data=ordered)
/dev/block/mmcblk0p3 on /mnt/extdata type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=60,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/loop6 on /data/data type ext4 (rw,relatime,barrier=0,data=ordered)
/dev/block/mtdblock1 on /mnt/mtddata type yaffs (rw,nosuid,nodev,noatime,nodiratime)
+++ All done, let's goooo!!! :D +++

4. changed config back to:

format_ext4=0
nand_data=0
sd_boost=0
swap_mode=3

5. and on the next boot all widgets are there again with all settings and data, here is init.log:

Mon Feb 28 16:55:50 UTC 2011
**************************************
*** DL Desire Series by Dandiest ***
*** freak modifs v13 ***
**************************************
--- Mounting /proc /sys
--- Making devices and variables
--- Loading sdcard
--- Define system config
--- Read config file
--- HD2 NAND version in use
--- Loading system
--- System loaded from Nand ---
--- Modify scheduler
--- 2nd partition found,start loading---
--- load 2nd partition for Nand--
--- sd_boost NOT active - mounting with default options
userdata: recovering journal
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

userdata: ***** FILE SYSTEM WAS MODIFIED *****

1367 inodes used (1.10%)
93 non-contiguous files (6.8%)
3 non-contiguous directories (0.2%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 1353/1
29802 blocks used (23.94%)
0 bad blocks
1 large file

531 regular files
824 directories
0 character device files
0 block device files
0 fifos
0 links
3 symbolic links (3 fast symbolic links)
0 sockets
--------
1358 files
--- EXT4 data loaded
**************************************
*** 3rd partition detected ***
*** Last boot - just for checking ***
**************************************
--- ext4 swap mounted in /mnt/tmpdata
/dev/block/mmcblk0p3 on /mnt/extdata type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=60,barrier=1,data=ordered,noauto_da_alloc)
--- Checking system image /mnt/extdata/ext4
--- Mounting fs at /data/data
--- ext4 swap mounted in /mnt/tmpdata
/dev/block/loop6 on /data/data type ext4 (rw,sync,nosuid,nodev,noatime,nodiratime,commit=30,barrier=0,data=ordered,noauto_da_alloc)
--- last check
/dev/block/mmcblk0p2 on /data type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=30,barrier=0,data=ordered,noauto_da_alloc) /dev/block/mmcblk0p3 on /mnt/extdata type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=60,barrier=1,data=ordered,noauto_da_alloc) /dev/block/loop6 on /data/data type ext4 (rw,relatime,commit=30,barrier=0,data=ordered,noauto_da_alloc)
-- Swap partition mounted successfully --
--- Normally all is ok
--- EXT4 data loaded
+++ Data-to-SD/EXT4 successfully enabled.
-- Not use Nand optimization --
--- no /cache find, create a default one --
+++ Data-to-SD/EXT4 completed, with the mount status:
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,relatime)
sys on /sys type sysfs (rw,relatime)
/dev/block/mmcblk0p1 on /bootsdcard type vfat (rw,noatime,nodiratime,fmask=0111,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/mtdblock0 on /system type yaffs2 (rw,relatime)
/dev/block/mmcblk0p2 on /data type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=30,barrier=0,data=ordered,noauto_da_alloc)
/dev/block/mmcblk0p3 on /mnt/extdata type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=60,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/loop6 on /data/data type ext4 (rw,relatime,commit=30,barrier=0,data=ordered,noauto_da_alloc)
/dev/block/mtdblock1 on /mnt/mtddata type yaffs (rw,nosuid,nodev,noatime,nodiratime)
+++ All done, let's goooo!!! :D +++

do you have enough information? I can test updates for you...

B.

what about swap_mode setting - who is responsible for that: you or dandienst?

(I want to test swap_mode 2 and 3, swap_mode 1 is not needed for me since I have 3 partitions, right?) how do I know swap_mode is working?

EDIT: I did further test and I figured out what swap_mode 3 does :):

...
--- EXT4 data loaded
...
/dev/block/mtdblock1 on /mnt/mtddata type yaffs (rw,nosuid,nodev,noatime,nodiratime)
...

That seems good...will see how it will perform with current update that has ramdisk support :)

@dandienst: And that means swap_mode 2 is not intended to speed things, but to free space on system partition..am I right?

UPDATE - 28. 2. 2011 23:16 (GMT+1):

C.

I have just found out a bug in swap_mode 3: the market cant download anything...(after deleting the setting from config.txt Market works again)