Jump to content

dbsharpe

Members
  • Posts

    118
  • Joined

  • Last visited

Posts posted by dbsharpe

  1. 1 hour ago, Amaury Decreme said:

     

    I've searched but didn't find my answer: How to recompile armbian kernel on S905X ? I would like to add kernel modules.

     

     

    I've found this https://github.com/150balbes/Amlogic_s905-kernel but:

    1. I'm not sure if that are the sources I must use ?
    2. Where can I find the .config currently used ?
    3. Once compiled, how to place it into /boot for armbian to boot ?

     

    Thank for the answers.

    The answers are in this forum but

    1. see https://forum.armbian.com/topic/7930-armbian-for-amlogic-s9xxx-kernel-41x-ver-555/?do=findComment&comment=68879
    2. see /boot/config* on the target tv box.
    3. depending on changes, you just copy from the buildhost modules into /lib once you've tested them and copy arch/arm64/boot /Image.gz to /boot/zImage

  2. 13 hours ago, amirul said:

    Not quite, no sound with that one :-(

    I'd try the .dtb filename your using from another .img build (more recent). I've found this works for me. Comparing the decompiled .dts source, the only difference was positioning of some statements in the structure (TBH, I pull the /boot and /lib/modules/ files out of the image when a new one is released).

  3. 1 hour ago, amirul said:

    5.73 does this as well.

    5.60 is ok

    I'm using a meson-gxbb-p201.dtb box and have noticed issues from version to version (i.e. sound on kernel 4.20.2) as well as screen powered off. Had to use systemctl restart  lightdm.service to get the screen back.
    Problem are fixed by using the dtb from Armbian_5.73_Aml-s905_Ubuntu_bionic_default_4.20.2_desktop_20180129.img.xz (even though I'm running 4.20.2-aml-s9xxx kernel)

  4. On 1/30/2019 at 1:56 PM, balbes150 said:

    New version 5.73.

    1. A separate section for images with the s905 LIMA driver has been added to the catalog.  Notice is images in which there is only the kernel driver LIMA, HW support for DE until they do not. For HW you need to collect a special version

    What is the current status of AMAUDIO/AMAUDIO2 (audio through HDMI from 3.14.29 amlogic kernel source) into 4.2x or NEXT 5.0 kernel builds for S905?

  5. 2 hours ago, amirul said:

    How do you test emmc r/w speed to see whether it is worthwhile to install instead of running on sdcard?

     

    You will need to mount (/mnt) a partition in emmc with enough space and issue:

    dd if=/dev/zero of=/mnt/512mbfile.bin bs=1024 count=512000

    which will report speed in bytes at the end. Its difficult to a read test due to the caching element but

    dd if=/mnt/512mbfile.bin of=/dev/null bs=1024

    will give you the speed of RAM if you run read test after write!

  6. 1 hour ago, martinayotte said:

    Why are you mount this partition using loop device ?

    It could be mounted directly using :

    
    mount /dev/mmcblk0p14 /mnt

     

    Your correct but under android or older 3.14.x kernels, aml_sd_emmc presents all the flash partitions laid out but with more recent 4.x and above kernels, meson-gxbb-mmc is one device according to /proc/partitions

  7. 1 hour ago, gameseg said:

    3. Execute script “/boot/create-mbr-linux.sh” (fails for me)

    4. and install Armbian on eMMC execute script “/root/install.sh”. (fails for me)

    What am I doing incorrectly? Or what do I need to change in order for this to work for me?

     

     

     


    I've not installed on emmc as I've never used usb burning tool to unbrick a tv box.
    Not impressed with the write speed when mounting existing emmc flash partitions.
    For example on my T95 S905, the data partion mmcblk0p14 based on the android boot information can be accessed with
    mount -t ext4 /dev/mmcblk0 /mnt -o loop,offset=2545942528,sizelimit=5272240128

    Can't suggest much with emmc apart from it will probably be a .dtb issue.

  8. On 1/24/2019 at 11:07 PM, gameseg said:

    Incredibly slow eth0 connection: 6.5Mbps down and 14Mbps upload.
    Cable and equipment work great for all other devices. How do I fix?

     

     

    If I had problems with a driver, I'd probably try going back a few kernel versions to see where the ethernet speed was OK or started faltering.
    The name of the module should be listed (from a shell) in /sys/class/net/<ETHERNET IF NAME>/device/uevent .
    If the kernel is at fault, possibly look at the source code and see if the developers/modifiers has an email address in the .c or .h files you could use to contact.
    I find most device problems in Armbian are related to .dtb files or firmware files.
    Having said that, have you tried ethtool under Armbian (assuming you get full speed when booted to android) and manually set the interface speed and duplex?

  9. 24 minutes ago, gnthibault said:

     

    Ahaha I try not to ^^ 

    More seriously, I did everything in my power to recover the first box, but apparently there is nothing I can do to get it back on track (it does not boot ftom sd, impossible to flash, and boot from emmc result in a useless distro that does not take anything from usb port). I will try to do a last check on monday, and dump my config files here. Thank you very much for your support. 

     

    Good point though, the frustration led me to invest in a rock64pro, and I will most likely use armbian on this one as well.

     

    I think gnthibault I've mentioned this before in forums but is it possible confusion may be occurring between duplicate partition labels?
    In fstab, you have LABEL=ROOTFS /  and in uEnv.ini etc bootargs=root=LABEL=ROOTFS
    What I'm saying is the internal emmc flash and sdcard may have the same ROOTFS label.

    Perhaps take the sdcard and relabel the ROOT partition with tune2fs or get UUID= value from blkid (and changing boot files in /boot/ and /etc/fstab ?

  10. 1 hour ago, adizanni said:

    @balbes150, from where are you getting the sources to compile with the right armbian version ? Can you give the 5.60 sources in one of your repositories ? 

    Thanks in advance and happy new year to everybody

     

    Andrea  

     

    Have a look at this post regarding kernel build.
    You will have to locate the relevant commit in https://github.com/150balbes/Amlogic_s905-kernel to get the correct version of 4.18.7 kernel source. As well as cross compile, you can also compile natively and either binaries seem to execute for me.
    As an aside, I'm running 4.19.7-aml-s9xxx and  config-4.19.7-aml-s9xxx has CONFIG_USB_SERIAL_FTDI_SIO=m and ftdi_sio.ko has already been built, if that's what you are looking for (assuming you have the correct .dbt which activates your USB ports).

  11. 1 hour ago, guidol said:

    I did try that fix

      Reveal hidden contents

    On 150balbes 4.18.0-rc5 Ubuntu images, for those with T95 (p200) AML tvbox using meson-gxbb-p201.dtb / 200 device tree file, there is a problem with wifi caused by an error with nvram firmware files.
    Problems manifests as wlan0 present but can't see any AP's.
    To fix, use

     

    mv /lib/firmware/brcm/brcmfmac4330-sdio.txt /lib/firmware/brcm/brcmfmac4330-sdio.txt.old
    ln -s  /lib/firmware/brcm/nvram_ap6330.txt  /lib/firmware/brcm/brcmfmac4330-sdio.txt

     

    in a shell on the target as root. Not sure where this Ubuntu  distribution fault has crept in.
    nvram_ap6330.txt is actually the same file as android system:/etc/wifi/40183/nvram.txt and although not perfect, works better!

    - it seems to be only the half way for wifi, because now I can scan Wifi with

    iwlist scan

    and get a result....but I cant connect :(

     

    For anyone reading and this is not working, it may be the file /lib/firmware/brcm/nvram_ap6330.txt is missing. I'm using
    the same kernel on ubuntu but earlier image and it's not present on the image or repository package. The working file is 1522 bytes long, 82 lines fb5322048b8fa27d612a9f4dce1696cd md5sum with a head saying #AP6330_NVRAM_V1.0_20121130.

  12. 19 minutes ago, Constantin Piffer said:

    Hi, I try to reinstall the original image on my magicsee n4 on emmc. I made a backup of the image via ddbr. Now I try to flash it, but I get this failure:
     

    I'm not an expert and have not backed up using ddbr but you might have to restore by hand with the dd command - see /usr/bin/ddbr_restore_nand assuming you can boot any linux like O/S from SD card.
    I can see problems booting from SD card with armbian installed on emmc due to the root=LABEL=ROOTFS conflicts at boot.

  13. 3 hours ago, guidol said:

    Today I "installed" Armbian_5.67_Aml-s9xxx_Debian_stretch_default_4.19.6_20181207.img
    on my Sunvell T95K Pro with the dtb for the gxm_q201

     

    Does boot fine.

    but eth0 and wlan0 doesnt work.

     

     

    This forum post will help you with wifi as it looks the exact comms hardware at issue

    It may be that the dbt file could be the problem for ethernet, even when the appropriate one is being used.

  14. 37 minutes ago, jpl250rs said:

     

    yes thanks for your answer i did browse it aleary but i'm not able to find the kernel headers for the 4.18.0-aml-s9xxx (5.59)

     

    Commit 846b7fe on Aug 19, 2018 has a Makefile with version/patch/sublevel of 4.18.0 - does that kernel source tree have the required header files (with a few .c files as bonus :-) ?
    The direct link is https://github.com/150balbes/Amlogic_s905-kernel/tree/846b7fef181189f73ada11fd9ecb69691ed05fd3

  15. 2 hours ago, blackpig936 said:

    anyone can help me to run wireguard on h96 pro plus ?

    Although the latest kernel I've  tried is 4.18.0-aml-s9xxx, you need CONFIG_NET_UDP_TUNNEL=m
    according to https://www.wireguard.com/install in the kernel source .config which isn't currently present as per armbian /boot/config.
    Don't know if it will help but a small hint regarding kernel build is at post https://forum.armbian.com/topic/2419-armbian-for-amlogic-s905-and-s905x-ver-544/?page=65&tab=comments#comment-61928
    As additional help, you will need CONFIG_NET_FOU=m to get the above included in the .config.

  16. 17 hours ago, venioni said:

    I runned CPU-Z and dont showing nothing about board number.

     

     

    Don't know if it will be more help but you can also get the hardware info from android adb shell getprop | grep -i build.product  or grep -i build.product /system/build.prop
    Also grep for
    ro.build.flavor
    ro.product.name
    ro.product.device
    ro.product.board
    ro.build.product
    board.platform

  17. 35 minutes ago, r4w said:

    I have a strange issue and I digged it a bit on google but I can't see what's exactly wrong. In dmesg I see:

     

    I have checked the relative firmware folder and I have the firmwares:

     

     

     

    Can't advise you on your specific device but I had a similar problem and it was down to incorrect firmware file names.
    I had to go back to the original working Android and find the firmware_path, nv_path etc by using dmseg and comparing file sizes/md5sum signatures.
    The specific device was t95 (Armbian forum post).

  18. 1 hour ago, briand123 said:

    I have a mecool bb2  pro which is a powerful 8 core s912 box.    I'm using it for real-time FFMPEG transcoding and re-

    Sorry, not familiar with mecool bb2 pro but as a general tip when debugging wifi problems, I found kernel 3.x Armbian builds supported wifi but the 4.x kernels did not work even though a module was loaded.
    Having got the correct dtb file, I had a poke around in /sys/class/net/wlan0/device/modalias & uevent
    I compared this to what android had and also made sure the files being used by android /lib/firmware/ and Armbian where correct.

     

  19. On 9/6/2018 at 4:36 AM, amirul said:

    Now to see why wifi & ethernet is not working...

     

    UPDATE: able to boot to desktop with meson-gxbb-p200.dtb - only with usb & side usb port. Boot process takes a bit longer though. Wifi & ethernet still not working.

     

    TX3 Mini (meson-gxl-s905w-tx3-mini.dtb, using sdcard or usb) boots to desktop (although slow to get login screen).

    eth0 working, wifi not (kern.log message: Direct firmware load for brcm/brcmfmac4330-sdio.clm_blob failed with error -2).

    Cannot switch vt out from X

    Take a look at https://forum.armbian.com/topic/2419-armbian-for-amlogic-s905-and-s905x-ver-544/?page=63&tab=comments#comment-60307  .

    I've just checked one of the latest AML Armbian 4.1x kernel Ubuntu images and the distro fault appears to be present still.

  20. On 9/5/2018 at 7:24 PM, lizzacore said:

    I have a new issue, only a small thing.

     

    I don't now if this needed or can be fixed but when please give me an advice to do so.

     

    grep "armbian-zram" /var/log/daemon.log

    Sep  5 19:56:46 S905xNAS systemd[1]: armbian-zram-config.service: Main process exited, code=exited, status=1/FAILURE

    Sep  5 19:56:46 S905xNAS systemd[1]: armbian-zram-config.service: Unit entered failed state.

    Sep  5 19:56:46 S905xNAS systemd[1]: armbian-zram-config.service: Failed with result 'exit-code'.

     

    No Swap, no l4z and no zram?

     

    If this is required for something?

     

    I read about it but I don't know.

     

     

    No zram shouldn't be too much on an issue but the reason (for 4.18.0-aml-s9xxx based kernels) your seeing this is that no zram.ko kernel module has been built (see /boot/config-4.18.0-aml-s9xxx).


    I've compiled the kernel from soruce http://github.com/150balbes/ to build some additional modules and zram builds and loads. I'm no expert on zram but it seems to be operational when loaded at boot on my Aml system, giving compressed swap.
    I assume kernel stability issues are the reasons zram has not been included in the current kernel .config

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines