Jump to content

ning

Members
  • Posts

    311
  • Joined

  • Last visited

Posts posted by ning

  1. 10 hours ago, microdoc said:

    I built a new kernel from 6.1.0-rc6

     

    I think you are using debian official kernel, or build from it. I think you need to check the patches from armbian, cherry pick some to rebuild debian kernel.

     

     

  2. Quote

    apt-file search moxa

    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1110.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1130.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1131.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1150.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1151.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1250.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1251.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1410.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1450.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1451.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1613.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1618.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1653.fw
    firmware-misc-nonfree: /lib/firmware/moxa/moxa-1658.fw
     

     

  3. 17 hours ago, Gunwoo Gim said:

    I tried installing linux-image-arm64 from the debian repo. but it didn't manage to boot, or even output anything on screen.

     

    I guess already use mainline uboot? right? if you are still using verdor uboot, debian kernel missing 1 patch to support boot mainline kernel on vendor uboot.

     

    I have added configs to enable debian kernel to support amlogic socs, tested A311d, S905x3 should also be supported.

    I guess you have wrong boot method, suggest you to use extlinux.conf install of boot.scr (local boot)

     

    install `u-boot-menu` and use extlinux.conf as boot menu to boot debian's kernel.

     

    if this not work, I suggest you to use `debootstrap` to rebuild your system, if you know how to configure system to bootable.

     

     

  4. /dts-v1/;
    /plugin/;
    
    / {
        fragment@0 {
    		target = <&uart0>;
    
    		__overlay__ {
    			pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
    			bluetooth {
    				compatible = "realtek,rtl8723bs-bt";
      				device-wake-gpios = <&gpio4 26 0>;
    				host-wake-gpios = <&gpio4 31 0>;
    				enable-gpios = <&gpio4 29 1>;
    			};
    		};
        };
    };

     

    dtc -I dts -O dtb bt.dts -o bt.dtbo

     

    would you like to try this dtbo?

  5. due to no vendor binary blobs to build uboot, restore to vendor OS is the only way to unbrick. these binary blobs are for memory init, power sequency.

    now your device is bricked, you can just try VIM's u-boot or p212's u-boot.

     

    只能重新刷成出厂的云OS。你看看国内论坛有没有。例如:znds.com等。

    既然你的设备已经坏了,可以试试VIM. 或 p212的u-boot。这样可以重新安装成Linux/Armbian,但安卓/云OS只不能了。

    不懂可以私信我。

  6. for 

    11 hours ago, chewitt said:

    This is the default sdio_pwrseq node (inherited from include): https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi#L94-L99  - it is in the top/indented section. So if you add the node to your board dts (to override a property) the node should be in the same top/indented section, not the 'body' area.

     

    is below correct?

     

    / {
            compatible = "tmall,magicbox-m16s", "amlogic,s912", "amlogic,meson-gxm";
            model = "Tmall MagicBox M16S";
    
            gpio-keys {
                    compatible = "gpio-keys-polled";
                    poll-interval = <100>;
    
                    key-power {
                            label = "power";
                            linux,code = <KEY_POWER>;
                            gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
                    };
            };
                      
           sdio_pwrseq :emmc-pwrseq {
               reset-gpios = <&gpio GPIODV_2 GPIO_ACTIVE_LOW>;
           };
    };

     

     

     

  7. gpio-241 (sdio_wifi ) in lo GPIOX_7  

     

    interrupt-parent = <&gpio_intc>;
               interrupts = <96 IRQ_TYPE_EDGE_RISING>; //89 + 7; GPIOX irq number from 89.. 

     

    gpio-251 (bt_rfkill ) in lo   GPIOX_17 ( the name is bt_rfkill, but its direction is in, thus it is interrupt.

    interrupt-parent = <&gpio_intc>;
               interrupts = <106 IRQ_TYPE_EDGE_RISING>;

     

    both gpios are normal low, thus rising edge for irq.

     

     

    and Vendor OS log:

    <6>[ 0.538183] c0 1 (swapper/0) aml_wifi wifi.33: [wifi_dev_probe] interrupt_pin=241

    <6>[ 0.538190] c0 1 (swapper/0) aml_wifi wifi.33: [wifi_dev_probe] irq_num=100, irq_trigger_type=1

     

    take me sometime to understand gpio to irq number....

     

    now left device side wakeup-pin.... this is too difficult.

  8. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/net/marvell-bt-8xxx.txt?h=v5.19-rc8

    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/net/wireless/marvell-8xxx.txt?h=v5.19-rc8

     

    missing interrupts and marvell,wakeup-pin,  

     

    interrupt pins are GPIOX_7 for wifi, GPIOX_17 for bt.

     

    this is infor from vendor OS:

     

    gpio-241 (sdio_wifi ) in lo GPIOX_7

    gpio-251 (bt_rfkill ) in lo   GPIOX_17 ( the name is bt_rfkill, but its direction is in, thus it is interrupt.

     

    but wakeup-pin is device side pin to wakeup soc, this is unknown.

     

    as said in bindings file, these are optional, wifi/bt are still work without them. but can't fill them with wrong data.

     

     

  9. On 7/27/2022 at 11:20 AM, chewitt said:

    a) The sdio_pwrdeq node is in the wrong place in the dts, it should be in the initial indented section, see https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi#L94-L99 - it is not a top-level node

     

    I don't understand this part, could you explain it more? what is top-level node?

    in my mind, if a node has phandle, I can modify it in any place.

    if you can add a patch to your github, this will help a lot.

     

     

    I already sent a email only to Sean ask how to handle RC keymap patch.

     

    if this patch is already accepted, I will send new version without this patch.

    new version will have 1 dts patch following 3 bindings patches, 2 with Acked-by.

     

    I plan to:

    add bt/wifi node to indicate bt wifi is ready, and comments about what missing in these nodes.

    (from sd8897 bindings, missing interrupt pin in soc side, meson gpio doesn't support interrup mode, and wake-up pin in device side, no impact to main function)

    add LED node quoted in "/* */" and comments to let others to know why LED is not enabled.

    (from info from Neil, need more patch to enable GPIO_TEST_N)

    in dts patch, not seprate patches.

     

    do you agree?

     

    I want to wait Sean's email for some days then new version.

     

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines