Ext4 on Apalis T30

Dear Mr Ziswiler,

Due to unstable working Debian 8.5 and kernel 4.6.2 (eMMC chip read and write errors, files disappearing) I’m trying to move from ext3 to ext4 using Apalis_T30_LinuxImageV2.6. First question, is it possible to make that kind of migration using Apalis_T30_LinuxImageV2.6? Bellow you can find diff, with steps which I have already made into Apalis T30 Linux image to swap from ext3 to ext4.

Could you correct me if am I on the good way with migrating to ext4? First problem occurs with cp_file_chunk variable. Even though I changed this variable in flash_blk.scr and flash_eth.scr files, I need to set it up again just after running command run setupdate. After this change image is deploying, but problem occurs as bellow:

%|-1058187099_81|%
%|-1373073772_82|%
%|-329972641_83|%
%|389542258_84|%
%|-1721714955_85|%
%|-2096235246_86|%
%|-236478367_87|%
%|-198868545_88|%
%|1988354985_89|%
%|-115942329_90|%
%|-1387809169_1|%
    resetting ...

Of course Linux doesn’t boot with error:

[   14.986963] mmc2: Timeout waiting for hardware interrupt.
[   15.005555] mmc2: new HS200 MMC card at address 0001
[   15.023852] mmcblk2: mmc2:0001 H8G2d 7.28 GiB 
[   15.049962] mmcblk2boot0: mmc2:0001 H8G2d partition 1 4.00 MiB
[   15.067385] mmcblk2boot1: mmc2:0001 H8G2d partition 2 4.00 MiB
[   15.085371] mmcblk2rpmb: mmc2:0001 H8G2d partition 3 4.00 MiB
[   15.105174]  mmcblk2: p1 p2
[   15.180228] List of all partitions:
[   15.193220] b300         7634944 mmcblk2  driver: mmcblk
[   15.208030]   b301           16384 mmcblk2p1 0009d197-01
[   15.222761]   b302         7587840 mmcblk2p2 0009d197-02
[   15.237467] b330            4096 mmcblk2rpmb  (driver?)
[   15.251898] b320            4096 mmcblk2boot1  (driver?)
[   15.266317] b310            4096 mmcblk2boot0  (driver?)
[   15.280604] No filesystem could mount root, tried:  ext4
[   15.294830] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

In attachment youy will find full log from uploading system on Apalis T30 using U-Boot.

I don’t think the instabilities you are seeing have anything to do with the file system used but rather with it either using background operation certain eMMC chips like the ones from SKHynix do not play nice with (e.g. due to their firmware being terribly broken) and/or using HS200 mode our hardware may not be compliant with. While nowadays I agree using ext4 would be the preferred choice unfortunately this was not yet stable in the down stream Linux kernel our official BSP uses which is why our flashing/update infrastructure so far utilises ext3. That said changing from ext3 to ext4 should be rather trivial to do. More information about the eMMC thematic can be found in the previous thread about running mainline on Apalis T30.

Dear Mr Ziswiler,

I have applied patch from this link. Linux works far better apart from when, I’m trying to install lxde or xorg only, I’m getting into big trouble. Just after xorg installation and system reboot I’m flooded with messages on me debug console:

[ 1381.816980] tegra_mc_irq: 1263162 callbacks suppressed
[ 1381.822175] tegra-mc 7000f000.memory-controller: display0a: read @0xffb71010: EMEM address decode error (SMMU translation error [--S]) 
[ 1381.834291] tegra-mc 7000f000.memory-controller: display0a: read @0xffb71010: Page fault (SMMU translation error [--S])
[ 1381.845141] tegra-mc 7000f000.memory-controller: display0a: read @0xffb797d0: EMEM address decode error (SMMU translation error [--S])
[ 1381.857259] tegra-mc 7000f000.memory-controller: display0a: read @0xffb797d0: Page fault (SMMU translation error [--S])
[ 1381.868110] tegra-mc 7000f000.memory-controller: display0a: read @0xffb26730: EMEM address decode error (SMMU translation error [--S])
[ 1381.880229] tegra-mc 7000f000.memory-controller: display0a: read @0xffb26730: Page fault (SMMU translation error [--S])
[ 1381.891047] tegra-mc 7000f000.memory-controller: display0a: read @0xffb76d80: EMEM address decode error (SMMU translation error [--S])
[ 1381.903160] tegra-mc 7000f000.memory-controller: display0a: read @0xffb76d80: Page fault (SMMU translation error [--S])
[ 1381.913993] tegra-mc 7000f000.memory-controller: display0a: read @0xffb23190: EMEM address decode error (SMMU translation error [--S])
[ 1381.928681] tegra-mc 7000f000.memory-controller: display0a: read @0xffb23190: Page fault (SMMU translation error [--S])

Additionally HDMI display stops working.

When I was trying to install lxde, system reboot during installation and never boot again with error on boot:

FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

In attachment full boot log.

As indicated in the other ticket one should clear the vidargs stuff plus for anything X one should use the modesetting driver rather than fbdev.