Jump to content

mss

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by mss

  1. I just build  the build the driver for my RTL8188FTV that supported by rtl8188fu. It works as wifi hot spot but has some problems with  nmcli . I share what is done and I hope it be useful for others.

     

    0. Install dkms , make and git:

     

    apt install dkms make git

     

    1. Remove any existing source and dkms config for module :

     


     

     dkms remove rtl8188fu/1.0 --all
    
     rm -f /lib/firmware/rtlwifi/rtl8188fufw.bin
    
     rm -f /etc/modprobe.d/rtl8188fu.conf
    
     rm -r /var/lib/dkms/rtl8188fu
    

     

    2.  Get current kernel version and install matching headers:

     

    uname -a 

     

    My results are:

     

     Linux orangepipc 5.10.21-sunxi #21.02.3 SMP Mon Mar 8 00:28:04 UTC 2021 armv7l GNU/Linux

     

    so my matching kernel headers package would be `linux-headers-current-sunxi=21.02.3` . You might replace `sunxi` and `21.02.3` depending on your top results. I installed it by specifying version:

     apt install linux-headers-current-sunxi=21.02.3
    

     

    3. Make kernels headers scripts:

    cd /usr/src/linux-headers-$(uname -r)
    make scripts

     

    4.  Clone arm branch from driver repository:

     

    git clone -b arm https://github.com/kelebek333/rtl8188fu rtl8188fu-arm

     

    5. Disable power saving in make config. find and replace this variable in `./rtl8188fu-arm/Makefile` and set as below:

    CONFIG_POWER_SAVING = n 
    CONFIG_WIFI_MONITOR = y

     

     

    6. Build and install driver:

    ln -s /lib/modules/$(uname -r)/build/arch/arm /lib/modules/$(uname -r)/build/arch/armv7l
    dkms add ./rtl8188fu-arm
    dkms build rtl8188fu/1.0
    dkms install rtl8188fu/1.0
    cp ./rtl8188fu/firmware/rtl8188fufw.bin /lib/firmware/rtlwifi/

     

     

     

    # Known problems :

    - ` nmcli dev wifi list` not works.

     

    Refrences:

    https://github.com/kelebek333/rtl8188fu/tree/arm#how-to-install-for-arm-devices

    https://docs.armbian.com/User-Guide_Advanced-Features/#how-to-build-a-wireless-driver

    https://forum.armbian.com/topic/13628-help-me-to-setup-a-wifi-ap-via-command-line/?do=findComment&comment=104106

     

    https://github.com/ulli-kroll/rtl8188fu

    https://askubuntu.com/a/1131265/483814

    https://github.com/brektrou/rtl8821CU#arm-architecture-tweak-for-this-driver-this-solves-compilation-problem-of-this-driver

  2. there is your problem

    Not exactly!

     

    I tested SD cart with H2testw and no issue detected. output log:

    Warning: Only 14786 of 14787 MByte tested.
    Test finished without errors.
    You can now delete the test files *.h2w or verify them again.
    Writing speed: 8.07 MByte/s
    Reading speed: 20.6 MByte/s
    H2testw v1.4
    

    demsg log after filesystem crash :

    [16631.756436] systemd-logind[25616]: New seat seat0.
    [16631.809140] systemd-logind[25616]: Failed to start user service: Unknown unit: user@0.service
    [16631.852567] systemd-logind[25616]: New session 1450 of user root.
    [16980.635700] systemd-logind[25616]: New session 1482 of user root.
    [22881.545071] systemd-logind[25616]: New session 2003 of user root.
    [23419.144228] mmcblk0: mmc_blk_err_check: general error sending status command, card status 0x80e00
    [23419.146272] mmcblk0: retrying write for general error
    [23419.148499] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23419.151556] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23419.154673] mmcblk0: not retrying timeout
    [23419.157856] end_request: I/O error, dev mmcblk0, sector 23929992
    [23423.502223] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.507197] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.512222] mmcblk0: not retrying timeout
    [23423.517266] end_request: I/O error, dev mmcblk0, sector 3936304
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936312
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936320
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936328
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936336
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936344
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936352
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936360
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936368
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936376
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936384
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936392
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936400
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936408
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936416
    [23423.598498] Aborting journal on device mmcblk0p1-8.
    [23423.598852] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.598945] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.598964] mmcblk0: not retrying timeout
    [23423.598985] end_request: I/O error, dev mmcblk0, sector 5197824
    [23423.599008] end_request: I/O error, dev mmcblk0, sector 5197832
    [23423.599030] end_request: I/O error, dev mmcblk0, sector 5197840
    [23423.599050] end_request: I/O error, dev mmcblk0, sector 5197848
    [23423.599070] end_request: I/O error, dev mmcblk0, sector 5197856
    [23423.599090] end_request: I/O error, dev mmcblk0, sector 5197864
    [23423.599110] end_request: I/O error, dev mmcblk0, sector 5197872
    [23423.599130] end_request: I/O error, dev mmcblk0, sector 5197880
    [23423.599149] end_request: I/O error, dev mmcblk0, sector 5197888
    [23423.599169] end_request: I/O error, dev mmcblk0, sector 5197896
    [23423.599189] end_request: I/O error, dev mmcblk0, sector 5197904
    [23423.599208] end_request: I/O error, dev mmcblk0, sector 5197912
    [23423.599228] end_request: I/O error, dev mmcblk0, sector 5197920
    [23423.599248] end_request: I/O error, dev mmcblk0, sector 5197928
    [23423.599267] end_request: I/O error, dev mmcblk0, sector 5197936
    [23423.599286] end_request: I/O error, dev mmcblk0, sector 5197944
    [23423.599382] Buffer I/O error on device mmcblk0p1, logical block 649472
    [23423.599446] Buffer I/O error on device mmcblk0p1, logical block 649473
    [23423.599507] Buffer I/O error on device mmcblk0p1, logical block 649474
    [23423.599554] Buffer I/O error on device mmcblk0p1, logical block 649475
    [23423.599600] Buffer I/O error on device mmcblk0p1, logical block 649476
    [23423.599643] Buffer I/O error on device mmcblk0p1, logical block 649477
    [23423.599689] Buffer I/O error on device mmcblk0p1, logical block 649478
    [23423.599728] Buffer I/O error on device mmcblk0p1, logical block 649479
    [23423.599767] Buffer I/O error on device mmcblk0p1, logical block 649480
    [23423.599806] Buffer I/O error on device mmcblk0p1, logical block 649481
    [23423.599845] Buffer I/O error on device mmcblk0p1, logical block 649482
    [23423.599884] Buffer I/O error on device mmcblk0p1, logical block 649483
    [23423.599923] Buffer I/O error on device mmcblk0p1, logical block 649484
    [23423.599962] Buffer I/O error on device mmcblk0p1, logical block 649485
    [23423.600002] Buffer I/O error on device mmcblk0p1, logical block 649486
    [23423.600028] Buffer I/O error on device mmcblk0p1, logical block 649487
    [23423.600062] EXT4-fs warning (device mmcblk0p1): ext4_end_bio:249: I/O error writing to inode 386396 (offset 1048576 size 65536 starting block 649728)
    [23423.696785] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.826926] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.832883] mmcblk0: not retrying timeout
    [23423.838534] end_request: I/O error, dev mmcblk0, sector 3825800
    [23423.842833] Buffer I/O error on device mmcblk0p1, logical block 477969
    [23423.842833] lost page write due to I/O error on mmcblk0p1
    [23423.857179] JBD2: Error -5 detected when updating journal superblock for mmcblk0p1-8.
    [23423.857591] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.857678] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.857696] mmcblk0: not retrying timeout
    [23423.857716] end_request: I/O error, dev mmcblk0, sector 2048
    [23423.857745] Buffer I/O error on device mmcblk0p1, logical block 0
    [23423.857763] lost page write due to I/O error on mmcblk0p1
    [23423.857822] EXT4-fs error (device mmcblk0p1): ext4_journal_start_sb:328: Detected aborted journal
    [23423.857853] EXT4-fs (mmcblk0p1): Remounting filesystem read-only
    [23423.857878] ------------[ cut here ]------------
    [23423.857917] WARNING: at fs/buffer.c:1112 mark_buffer_dirty+0x40/0xe4()
    [23423.857933] Modules linked in: 8188eu bnep bluetooth 8189es [last unloaded: 8188eu]
    [23423.858016] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0695870>] (dump_stack+0x20/0x24)
    [23423.858060] [<c0695870>] (dump_stack+0x20/0x24) from [<c0029720>] (warn_slowpath_common+0x5c/0x74)
    [23423.858090] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.858130] [<c0029720>] (warn_slowpath_common+0x5c/0x74) from [<c00297f4>] (warn_slowpath_null+0x2c/0x34)
    [23423.858172] [<c00297f4>] (warn_slowpath_null+0x2c/0x34) from [<c0149b6c>] (mark_buffer_dirty+0x40/0xe4)
    [23423.858198] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.858238] [<c0149b6c>] (mark_buffer_dirty+0x40/0xe4) from [<c01a21e8>] (ext4_commit_super+0x1a4/0x218)
    [23423.858258] mmcblk0: not retrying timeout
    [23423.858287] [<c01a21e8>] (ext4_commit_super+0x1a4/0x218) from [<c01a2284>] (save_error_info+0x28/0x2c)
    [23423.858310] end_request: I/O error, dev mmcblk0, sector 2048
    [23423.858341] [<c01a2284>] (save_error_info+0x28/0x2c) from [<c01a2974>] (__ext4_abort+0xbc/0xf0)
    [23423.858361] Buffer I/O error on device mmcblk0p1, logical block 0
    [23423.858394] [<c01a2974>] (__ext4_abort+0xbc/0xf0) from [<c01a2acc>] (ext4_journal_start_sb+0x124/0x1a4)
    [23423.858414] lost page write due to I/O error on mmcblk0p1
    [23423.858446] [<c01a2acc>] (ext4_journal_start_sb+0x124/0x1a4) from [<c018ce68>] (ext4_dirty_inode+0x24/0x50)
    [23423.858474] EXT4-fs error (device mmcblk0p1): ext4_journal_start_sb:328: [<c018ce68>] (ext4_dirty_inode+0x24/0x50) from [<c01417d0>] (__mark_inode_dirty+0x3c/0x1c8)
    [23423.858521] Detected aborted journal[<c01417d0>] (__mark_inode_dirty+0x3c/0x1c8) from [<c0134d88>] (file_update_time+0xf8/0x114)
    
    [23423.858600] [<c0134d88>] (file_update_time+0xf8/0x114) from [<c00dccc0>] (__generic_file_aio_write+0x2f0/0x434)
    [23423.858666] [<c00dccc0>] (__generic_file_aio_write+0x2f0/0x434) from [<c00dce74>] (generic_file_aio_write+0x70/0xd8)
    [23423.858722] [<c00dce74>] (generic_file_aio_write+0x70/0xd8) from [<c01832ec>] (ext4_file_write+0x188/0x2c0)
    [23423.858784] [<c01832ec>] (ext4_file_write+0x188/0x2c0) from [<c011d8cc>] (do_sync_write+0xac/0xe8)
    [23423.858826] [<c011d8cc>] (do_sync_write+0xac/0xe8) from [<c011dfc4>] (vfs_write+0xc0/0x16c)
    [23423.858863] [<c011dfc4>] (vfs_write+0xc0/0x16c) from [<c011e360>] (sys_write+0x4c/0x78)
    [23423.858902] [<c011e360>] (sys_write+0x4c/0x78) from [<c000df60>] (ret_fast_syscall+0x0/0x30)
    [23423.858928] ---[ end trace 7415e919e2cb81fd ]---
    [23423.859219] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.859293] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.859312] mmcblk0: not retrying timeout
    [23423.859332] end_request: I/O error, dev mmcblk0, sector 2048
    [23423.859361] Buffer I/O error on device mmcblk0p1, logical block 0
    [23423.859379] lost page write due to I/O error on mmcblk0p1
    [23448.500734] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23448.515357] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23448.530133] mmcblk0: not retrying timeout
    [23448.544804] end_request: I/O error, dev mmcblk0, sector 4199624
    [23448.554755] Buffer I/O error on device mmcblk0p1, logical block 524697
    [23448.554755] lost page write due to I/O error on mmcblk0p1
    [23448.590706] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23448.607128] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23448.623677] mmcblk0: not retrying timeout
    [23448.640295] end_request: I/O error, dev mmcblk0, sector 4201016
    [23448.650254] Buffer I/O error on device mmcblk0p1, logical block 524871
    [23448.650254] lost page write due to I/O error on mmcblk0p1
    [23474.133018] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23474.148595] mmcblk0: not retrying timeout
    [23474.163811] end_request: I/O error, dev mmcblk0, sector 12875400
    [23474.514701] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23474.529646] mmcblk0: not retrying timeout
    [23474.544383] end_request: I/O error, dev mmcblk0, sector 12875400
    [23534.270797] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23534.284202] mmcblk0: not retrying timeout
    [23534.297107] end_request: I/O error, dev mmcblk0, sector 12875400
    [23553.805118] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23553.818195] mmcblk0: not retrying timeout
    [23553.830636] end_request: I/O error, dev mmcblk0, sector 12875400
    [23594.555994] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23594.567161] mmcblk0: not retrying timeout
    [23594.578194] end_request: I/O error, dev mmcblk0, sector 12875400
    [23652.753856] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23652.763856] mmcblk0: not retrying timeout
    [23652.773565] end_request: I/O error, dev mmcblk0, sector 12875400
    [23653.505575] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23653.515097] mmcblk0: not retrying timeout
    [23653.524382] end_request: I/O error, dev mmcblk0, sector 12875400
    [23660.556280] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23660.565967] mmcblk0: not retrying timeout
    [23660.575746] end_request: I/O error, dev mmcblk0, sector 12875400
    [23691.298438] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23691.308043] mmcblk0: not retrying timeout
    [23691.317425] end_request: I/O error, dev mmcblk0, sector 12875400
    [23709.104535] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23709.113909] mmcblk0: not retrying timeout
    [23709.123413] end_request: I/O error, dev mmcblk0, sector 12875400
    [23713.866279] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23713.876803] mmcblk0: not retrying timeout
    [23713.887318] end_request: I/O error, dev mmcblk0, sector 12875400
    [23714.233959] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23714.244696] mmcblk0: not retrying timeout
    [23714.255197] end_request: I/O error, dev mmcblk0, sector 12875400
    
    

     

     

  3. And dmesg will tell you the reason: Filesystem corrupted due to using faulty or counterfeit SD card and kernel trying to save your FS by setting it to read-only :)

     

    Call dmesg and watch for ext4/corruption, then follow the checking procedure on another system as outlined in our documentation: http://docs.armbian.com/User-Guide_Getting-Started/#how-to-prepare-a-sd-card or throw the card away.

     

    Thanks but I tested SD cart with H2testw and no issue detected. output log:

     

     

    Warning: Only 14786 of 14787 MByte tested.
    Test finished without errors.
    You can now delete the test files *.h2w or verify them again.
    Writing speed: 8.07 MByte/s
    Reading speed: 20.6 MByte/s
    H2testw v1.4
    

    and demsg log after filesystem crash :

     

    [16631.756436] systemd-logind[25616]: New seat seat0.
    [16631.809140] systemd-logind[25616]: Failed to start user service: Unknown unit: user@0.service
    [16631.852567] systemd-logind[25616]: New session 1450 of user root.
    [16980.635700] systemd-logind[25616]: New session 1482 of user root.
    [22881.545071] systemd-logind[25616]: New session 2003 of user root.
    [23419.144228] mmcblk0: mmc_blk_err_check: general error sending status command, card status 0x80e00
    [23419.146272] mmcblk0: retrying write for general error
    [23419.148499] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23419.151556] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23419.154673] mmcblk0: not retrying timeout
    [23419.157856] end_request: I/O error, dev mmcblk0, sector 23929992
    [23423.502223] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.507197] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.512222] mmcblk0: not retrying timeout
    [23423.517266] end_request: I/O error, dev mmcblk0, sector 3936304
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936312
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936320
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936328
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936336
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936344
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936352
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936360
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936368
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936376
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936384
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936392
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936400
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936408
    [23423.522180] end_request: I/O error, dev mmcblk0, sector 3936416
    [23423.598498] Aborting journal on device mmcblk0p1-8.
    [23423.598852] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.598945] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.598964] mmcblk0: not retrying timeout
    [23423.598985] end_request: I/O error, dev mmcblk0, sector 5197824
    [23423.599008] end_request: I/O error, dev mmcblk0, sector 5197832
    [23423.599030] end_request: I/O error, dev mmcblk0, sector 5197840
    [23423.599050] end_request: I/O error, dev mmcblk0, sector 5197848
    [23423.599070] end_request: I/O error, dev mmcblk0, sector 5197856
    [23423.599090] end_request: I/O error, dev mmcblk0, sector 5197864
    [23423.599110] end_request: I/O error, dev mmcblk0, sector 5197872
    [23423.599130] end_request: I/O error, dev mmcblk0, sector 5197880
    [23423.599149] end_request: I/O error, dev mmcblk0, sector 5197888
    [23423.599169] end_request: I/O error, dev mmcblk0, sector 5197896
    [23423.599189] end_request: I/O error, dev mmcblk0, sector 5197904
    [23423.599208] end_request: I/O error, dev mmcblk0, sector 5197912
    [23423.599228] end_request: I/O error, dev mmcblk0, sector 5197920
    [23423.599248] end_request: I/O error, dev mmcblk0, sector 5197928
    [23423.599267] end_request: I/O error, dev mmcblk0, sector 5197936
    [23423.599286] end_request: I/O error, dev mmcblk0, sector 5197944
    [23423.599382] Buffer I/O error on device mmcblk0p1, logical block 649472
    [23423.599446] Buffer I/O error on device mmcblk0p1, logical block 649473
    [23423.599507] Buffer I/O error on device mmcblk0p1, logical block 649474
    [23423.599554] Buffer I/O error on device mmcblk0p1, logical block 649475
    [23423.599600] Buffer I/O error on device mmcblk0p1, logical block 649476
    [23423.599643] Buffer I/O error on device mmcblk0p1, logical block 649477
    [23423.599689] Buffer I/O error on device mmcblk0p1, logical block 649478
    [23423.599728] Buffer I/O error on device mmcblk0p1, logical block 649479
    [23423.599767] Buffer I/O error on device mmcblk0p1, logical block 649480
    [23423.599806] Buffer I/O error on device mmcblk0p1, logical block 649481
    [23423.599845] Buffer I/O error on device mmcblk0p1, logical block 649482
    [23423.599884] Buffer I/O error on device mmcblk0p1, logical block 649483
    [23423.599923] Buffer I/O error on device mmcblk0p1, logical block 649484
    [23423.599962] Buffer I/O error on device mmcblk0p1, logical block 649485
    [23423.600002] Buffer I/O error on device mmcblk0p1, logical block 649486
    [23423.600028] Buffer I/O error on device mmcblk0p1, logical block 649487
    [23423.600062] EXT4-fs warning (device mmcblk0p1): ext4_end_bio:249: I/O error writing to inode 386396 (offset 1048576 size 65536 starting block 649728)
    [23423.696785] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.826926] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.832883] mmcblk0: not retrying timeout
    [23423.838534] end_request: I/O error, dev mmcblk0, sector 3825800
    [23423.842833] Buffer I/O error on device mmcblk0p1, logical block 477969
    [23423.842833] lost page write due to I/O error on mmcblk0p1
    [23423.857179] JBD2: Error -5 detected when updating journal superblock for mmcblk0p1-8.
    [23423.857591] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.857678] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.857696] mmcblk0: not retrying timeout
    [23423.857716] end_request: I/O error, dev mmcblk0, sector 2048
    [23423.857745] Buffer I/O error on device mmcblk0p1, logical block 0
    [23423.857763] lost page write due to I/O error on mmcblk0p1
    [23423.857822] EXT4-fs error (device mmcblk0p1): ext4_journal_start_sb:328: Detected aborted journal
    [23423.857853] EXT4-fs (mmcblk0p1): Remounting filesystem read-only
    [23423.857878] ------------[ cut here ]------------
    [23423.857917] WARNING: at fs/buffer.c:1112 mark_buffer_dirty+0x40/0xe4()
    [23423.857933] Modules linked in: 8188eu bnep bluetooth 8189es [last unloaded: 8188eu]
    [23423.858016] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0695870>] (dump_stack+0x20/0x24)
    [23423.858060] [<c0695870>] (dump_stack+0x20/0x24) from [<c0029720>] (warn_slowpath_common+0x5c/0x74)
    [23423.858090] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.858130] [<c0029720>] (warn_slowpath_common+0x5c/0x74) from [<c00297f4>] (warn_slowpath_null+0x2c/0x34)
    [23423.858172] [<c00297f4>] (warn_slowpath_null+0x2c/0x34) from [<c0149b6c>] (mark_buffer_dirty+0x40/0xe4)
    [23423.858198] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.858238] [<c0149b6c>] (mark_buffer_dirty+0x40/0xe4) from [<c01a21e8>] (ext4_commit_super+0x1a4/0x218)
    [23423.858258] mmcblk0: not retrying timeout
    [23423.858287] [<c01a21e8>] (ext4_commit_super+0x1a4/0x218) from [<c01a2284>] (save_error_info+0x28/0x2c)
    [23423.858310] end_request: I/O error, dev mmcblk0, sector 2048
    [23423.858341] [<c01a2284>] (save_error_info+0x28/0x2c) from [<c01a2974>] (__ext4_abort+0xbc/0xf0)
    [23423.858361] Buffer I/O error on device mmcblk0p1, logical block 0
    [23423.858394] [<c01a2974>] (__ext4_abort+0xbc/0xf0) from [<c01a2acc>] (ext4_journal_start_sb+0x124/0x1a4)
    [23423.858414] lost page write due to I/O error on mmcblk0p1
    [23423.858446] [<c01a2acc>] (ext4_journal_start_sb+0x124/0x1a4) from [<c018ce68>] (ext4_dirty_inode+0x24/0x50)
    [23423.858474] EXT4-fs error (device mmcblk0p1): ext4_journal_start_sb:328: [<c018ce68>] (ext4_dirty_inode+0x24/0x50) from [<c01417d0>] (__mark_inode_dirty+0x3c/0x1c8)
    [23423.858521] Detected aborted journal[<c01417d0>] (__mark_inode_dirty+0x3c/0x1c8) from [<c0134d88>] (file_update_time+0xf8/0x114)
    
    [23423.858600] [<c0134d88>] (file_update_time+0xf8/0x114) from [<c00dccc0>] (__generic_file_aio_write+0x2f0/0x434)
    [23423.858666] [<c00dccc0>] (__generic_file_aio_write+0x2f0/0x434) from [<c00dce74>] (generic_file_aio_write+0x70/0xd8)
    [23423.858722] [<c00dce74>] (generic_file_aio_write+0x70/0xd8) from [<c01832ec>] (ext4_file_write+0x188/0x2c0)
    [23423.858784] [<c01832ec>] (ext4_file_write+0x188/0x2c0) from [<c011d8cc>] (do_sync_write+0xac/0xe8)
    [23423.858826] [<c011d8cc>] (do_sync_write+0xac/0xe8) from [<c011dfc4>] (vfs_write+0xc0/0x16c)
    [23423.858863] [<c011dfc4>] (vfs_write+0xc0/0x16c) from [<c011e360>] (sys_write+0x4c/0x78)
    [23423.858902] [<c011e360>] (sys_write+0x4c/0x78) from [<c000df60>] (ret_fast_syscall+0x0/0x30)
    [23423.858928] ---[ end trace 7415e919e2cb81fd ]---
    [23423.859219] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23423.859293] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23423.859312] mmcblk0: not retrying timeout
    [23423.859332] end_request: I/O error, dev mmcblk0, sector 2048
    [23423.859361] Buffer I/O error on device mmcblk0p1, logical block 0
    [23423.859379] lost page write due to I/O error on mmcblk0p1
    [23448.500734] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23448.515357] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23448.530133] mmcblk0: not retrying timeout
    [23448.544804] end_request: I/O error, dev mmcblk0, sector 4199624
    [23448.554755] Buffer I/O error on device mmcblk0p1, logical block 524697
    [23448.554755] lost page write due to I/O error on mmcblk0p1
    [23448.590706] mmcblk0: mmc_blk_cmd_recovery: general error sending stop or status command, stop cmd response 0x0, card status 0x80d00
    [23448.607128] mmcblk0: timed out sending r/w cmd command, card status 0x80d00
    [23448.623677] mmcblk0: not retrying timeout
    [23448.640295] end_request: I/O error, dev mmcblk0, sector 4201016
    [23448.650254] Buffer I/O error on device mmcblk0p1, logical block 524871
    [23448.650254] lost page write due to I/O error on mmcblk0p1
    [23474.133018] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23474.148595] mmcblk0: not retrying timeout
    [23474.163811] end_request: I/O error, dev mmcblk0, sector 12875400
    [23474.514701] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23474.529646] mmcblk0: not retrying timeout
    [23474.544383] end_request: I/O error, dev mmcblk0, sector 12875400
    [23534.270797] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23534.284202] mmcblk0: not retrying timeout
    [23534.297107] end_request: I/O error, dev mmcblk0, sector 12875400
    [23553.805118] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23553.818195] mmcblk0: not retrying timeout
    [23553.830636] end_request: I/O error, dev mmcblk0, sector 12875400
    [23594.555994] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23594.567161] mmcblk0: not retrying timeout
    [23594.578194] end_request: I/O error, dev mmcblk0, sector 12875400
    [23652.753856] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23652.763856] mmcblk0: not retrying timeout
    [23652.773565] end_request: I/O error, dev mmcblk0, sector 12875400
    [23653.505575] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23653.515097] mmcblk0: not retrying timeout
    [23653.524382] end_request: I/O error, dev mmcblk0, sector 12875400
    [23660.556280] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23660.565967] mmcblk0: not retrying timeout
    [23660.575746] end_request: I/O error, dev mmcblk0, sector 12875400
    [23691.298438] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23691.308043] mmcblk0: not retrying timeout
    [23691.317425] end_request: I/O error, dev mmcblk0, sector 12875400
    [23709.104535] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23709.113909] mmcblk0: not retrying timeout
    [23709.123413] end_request: I/O error, dev mmcblk0, sector 12875400
    [23713.866279] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23713.876803] mmcblk0: not retrying timeout
    [23713.887318] end_request: I/O error, dev mmcblk0, sector 12875400
    [23714.233959] mmcblk0: timed out sending r/w cmd command, card status 0x80b00
    [23714.244696] mmcblk0: not retrying timeout
    [23714.255197] end_request: I/O error, dev mmcblk0, sector 12875400

     

     

    Please Help  :(

  4. Just run these commands one by one :

    sudo apt-get install git automake libglib2.0-dev gstreamer0.10-alsa gstreamer0.10-tools libgstreamer0.10-dev libupnp-dev libxml2-dev gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-fluendo-mp3 gstreamer0.10-pulseaudio pulseaudio
    
    git clone https://github.com/hzeller/gmrender-resurrect.git
    
    cd gmrender-resurrect
    
    ./configure LIBS=-lm
    
    make
    
    sudo make install
    
    gmediarender -f OPI
    

    and to add video play back install gstreamer:

    sudo apt-get install gstreamer1.0
    

    the last command run gmediarender server and now u cat sream audio from phone using any app that support dnla. like this app: 
    https://play.google.com/store/apps/details?id=com.tuxera.streambels&hl=en[AllConnect - Play & Stream]

     

    you might need make it a service or autostart script it's up to you. 
     

    maybe I miss some step so I left all my references  but if you have problem please let me know.

     

    References:

  5. Problem Solved alsamixer `hdmi audio function` may set to `pcm` [open alsamixer / press F6 / select hdmi ... / up-down to find pcm]

    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqq AlsaMixer v1.0.28 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
    x Card: sndhdmi                                       F1:  Help               x
    x Chip:                                               F2:  System information x
    x View: F3:[Playback] F4: Capture  F5: All            F6:  Select sound card  x
    x Item: hdmi audio format Function [pcm]              Esc: Exit               x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                    pcm                                      x
    x                        <hdmi audio format Function>                         x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    x                                                                             x
    mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
    
  6. Thanks @AnonymousPi but I try both config and I get cutting whit noise on hdmi while analogue outline working well.

    what did i do wrong?

    can it be a bad configuration on alsamixer ? 

    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqq AlsaMixer v1.0.28 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
    x Card: audiocodec                                    F1:  Help               x
    x Chip:                                               F2:  System information x
    x View: F3:[Playback] F4: Capture  F5: All            F6:  Select sound card  x
    x Item: Lineout volume control                        Esc: Exit               x
    x                                                                             x
    x     lqqk     lqqk                                         lqqk     lqqk     x
    x     xaax     xaax                                         xaax     xaax     x
    x     xaax     xaax                                         xaax     xaax     x
    x     xaax     xaax                                         xaax     xaax     →
    x     xaax     xaax                                         xaax     xaax     →
    x     xaax     xaax                                         xaax     xaax     →
    x     xaax     xaax                                         xaax     xaax     →
    x     xaax     xaax                                         xaax     xaax     →
    x     xaax     xaax                                         xaax     xaax     →
    x     xaax     xaax                                         xaax     xaax     →
    x     xaax     xaax                                         xaax     xaax     x
    x     xaax     xaax                                         xaax     xaax     x
    x     mqqj     mqqj     lqqk     lqqk     lqqk     lqqk     mqqj     mqqj     x
    x                       xOOx     xOOx     xOOx     xOOx                       x
    x                       mqqj     mqqj     mqqj     mqqj                       x
    x     100      100                                          100      100      x
    x  <Lineout >ADC inpu Audio ad Audio ad Audio li Audio li LINEIN_G MIC1 boo   x
    mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
    
  7. Nice review and a great work !
    I try to test my storage but after I run iozone and cancel it(it take too long and didn't finish) some strange things happens !
    My file system get locked! 

    root@orangepipc:~# touch test
    touch: cannot touch ‘test’: Read-only file system
    root@orangepipc:~# reboot
    -bash: /sbin/reboot: Input/output error
    

    my board : orange pi pc 
    my sd card: galecy bit 16Bit U1

    my kernel: Linux orangepipc 3.4.112-sun8i #8 SMP PREEMPT Tue May 31 19:00:17 CEST 2016 armv7l GNU/Linux

  8. After some crashes and hard shout down my orange pi pc stuck on systemd services during boot after checking it seems file system has some problems. Then I try run fsck on root device by 

    sudo touch /forcefsck

    but it did anything and dont run fsck after reboot no prompt on display and fsck log files are empty:

     cat /var/log/fsck/*
    

    any way I try to enable fsck by editing :

    nano /etc/default/rcS
    

    and set : 

    FSCKFIX=yes

    and also try set in file system :

    tune2fs -c 1 /dev/mmcblk0p1

    and all my attempts failed Igor please help :(  

  9. Ok Install ubuntu 16.04 follow instruction you make and yes it compiled and it was simple thanks to igore script (there was problem with dialog I suggest to add  apt update to start of script ) .

     

    During the compile process it ask about device type and kernel version and I choose orange pi pc and default kernel. finally it makes some .deb file in output directory i copy all of them to orange pi pc /root and install on armbian .

     

    The acl flag kernel config is now enabled :

    root@orangepipc:~# cat /boot/config-3.4.112-sun8i | grep _ACL
    CONFIG_EXT4_FS_POSIX_ACL=y
    CONFIG_BTRFS_FS_POSIX_ACL=y
    CONFIG_FS_POSIX_ACL=y
    CONFIG_GENERIC_ACL=y
    CONFIG_TMPFS_POSIX_ACL=y
    CONFIG_NFS_V3_ACL=y
    CONFIG_NFSD_V2_ACL=y
    CONFIG_NFSD_V3_ACL=y
    CONFIG_NFS_ACL_SUPPORT=y
    

    but mount command doesn't show acl flag is available:

    root@orangepipc:~# mount
    /dev/mmcblk0p1 on / type ext4 (rw,noatime,nodiratime,errors=remount-ro,commit=600)
    devtmpfs on /dev type devtmpfs (rw,relatime,size=380824k,nr_inodes=95206,mode=755)
    sysfs on /sys type sysfs (rw,relatime)
    none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
    none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755)
    none on /sys/fs/fuse/connections type fusectl (rw,relatime)
    none on /sys/kernel/debug type debugfs (rw,relatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=262144k)
    none on /run type tmpfs (rw,nosuid,noexec,relatime,size=102416k,mode=755)
    none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,size=100k,mode=755)
    none on /run/shm type tmpfs (rw,nosuid,nodev,relatime)
    none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755)
    

    and now I'm able to run setfacl -dm without problem but it still doesn't set default permission for new files it's really strange. 

    root@orangepipc:~# setfacl -dm u::rwx,g::rwx,o::r  /var/www/html/files
    root@orangepipc:~# getfacl  /var/www/html/files
    getfacl: Removing leading '/' from absolute path names
    # file: var/www/html/files
    # owner: www-data
    # group: www-data
    # flags: ss-
    user::rwx
    group::rwx
    other::rwx
    default:user::rwx
    default:group::rwx
    default:other::r--
    
    root@orangepipc:~# touch /var/www/html/files/test
    root@orangepipc:~# ls -ltrh /var/www/html/files
    total 0
    -rw-rw-r-- 1 root www-data 0 May 22 17:39 test
    

    I hope somebody can help me to understand whats happening here?   :(

  10. I try to use acl but I failed to remount file system with acl if seams kernel compiled with disabled acl for ext filesystem.

     

    my fstab config:

    # UNCONFIGURED FSTAB FOR BASE SYSTEM
    tmpfs   /tmp         tmpfs   nodev,nosuid,size=256M          0  0
    /dev/mmcblk0p1  /           ext4    acl,defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro        0       0
    /var/swap none swap sw 0 0
    

    and my check  for acl in kernel config:

    root@orangepipc:~# cat /boot/config-3.4.112-sun8i | grep _ACL
    # CONFIG_EXT4_FS_POSIX_ACL is not set
    CONFIG_BTRFS_FS_POSIX_ACL=y
    CONFIG_FS_POSIX_ACL=y
    CONFIG_GENERIC_ACL=y
    CONFIG_TMPFS_POSIX_ACL=y
    CONFIG_NFS_V3_ACL=y
    CONFIG_NFSD_V2_ACL=y
    CONFIG_NFSD_V3_ACL=y
    CONFIG_NFS_ACL_SUPPORT=y

    It seams the analog audio out put dos't work too, I can't test it with speaker-test.  

     

    It would be a great favor to recompile kernel with acl for ext4 and guide me about audio out put.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines