导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. siguadao
    3. 帖子
    S
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 644
    • 主题 3
    • 帖子 14
    • 最佳 0
    • 群组 0

    siguadao 发布的帖子

    • 回复: 求教,D1s uboot烧写问题。

      @whycan
      感觉和内存卡应该没关系。
      直接打开最后打包好的img文件,查找修改的那行打印,发现竟然有三行:

      行7465:========== arch info 1234 ==========
      行19154:========== arch info 1234 ==========
      行78268:========== arch info ==========
      

      这个pack流程有详细介绍的么?为什么一个升级包里面会含有三个uboot的代码部分?

      发布在 MR Series
      S
      siguadao
    • 回复: 求教,D1s uboot烧写问题。

      @whycan
      没有外插内存卡,只是板子还贴了一片512MB的flash。

      发布在 MR Series
      S
      siguadao
    • 回复: 求教,D1s uboot烧写问题。

      @whycan
      今天中午整个out目录删除掉,重新编译、打包、升级了一遍,问题依旧。

      ysc@harvey-ubuntu:~/tina_d1_open_v2_0602/out/d1s-nezha/image$ ll u-boot.fex 
      -rwxr--r-- 1 ysc ysc 933888  3月  2 14:35 u-boot.fex*
      

      直接打开u-boot.fex文件查看其内容,发现内容是已经修改过了的(1234那个打印):

          sunxi-spinand-phy: detect spinand id: %x %x
          sunxi-spinand-phy: ========== arch info 1234 ==========
              sunxi-spinand-phy: Model:               %s
      

      有没有可能是我的烧写工具的问题?当前使用的工具是这个版本:
      8f6b283e-d0a1-4a62-a371-19a971527a5c-image.png

      发布在 MR Series
      S
      siguadao
    • 回复: 求教,D1s uboot烧写问题。

      @xiaowenge
      请问是手动拷贝到哪里呢?
      我查看了下uboot编译过程,貌似是自动会拷贝到如下目录:

      'u-boot.bin' -> 'u-boot-sun20iw1p1.bin'
      'u-boot-sun20iw1p1.bin' -> './../../../device/config/chips/d1s/bin/u-boot-sun20iw1p1.bin'
      
      发布在 MR Series
      S
      siguadao
    • 回复: 求教,D1s uboot烧写问题。

      @whycan
      执行pack命令之后是没有报错的,且烧录的镜像文件确定没问题。
      有什么办法可以确定镜像文件中包含的uboot就是我刚刚编译出来的uboot吗?

      发布在 MR Series
      S
      siguadao
    • 回复: 求教,D1s uboot烧写问题。

      @whycan
      有的。
      在~/lichee/brandy-2.0/u-boot-2018/drivers/mtd/awnand/spinand/physic目录下,我修改了id.c文件里的一条打印来做验证,如下:

      static int aw_spinand_info_init(struct aw_spinand_chip *chip,
      		struct aw_spinand_phy_info *pinfo)
      {
              ......
      	pr_info("========== arch info 123 ==========\n");
      

      编译完之后.o文件有更新(昨天修改的):
      937898d4-c4c3-43d3-96d1-2b0a83890236-image.png
      但是烧写完成后,查看串口输出信息,打印的仍然是:

      sunxi-spinand-phy: ========== arch info ==========
      
      发布在 MR Series
      S
      siguadao
    • 回复: 求教,D1s uboot烧写问题。

      @whycan
      没有,不管是全盘擦除烧写还是分区烧写都没有更新。

      发布在 MR Series
      S
      siguadao
    • 回复: 求教,D1s uboot烧写问题。

      @whycan
      是的,请晕哥指教🙏

      发布在 MR Series
      S
      siguadao
    • 求教,D1s uboot烧写问题。

      【芯片】D1s
      【需求】在uboot中增加屏幕驱动。
      【问题】uboot烧写失败,准确地说是没起作用。
      【描述】
      1、进入~/lichee/brandy-2.0/u-boot-2018,修改所需代码。为了验证uboot已经更新,特意修改了一句打印。
      2、编译uboot。尝试使用了两种方式来编译:在uboot目录下使用muboot;在SDK根目录下使用make。两种方式下,编译完成之后在~/lichee/brandy-2.0/u-boot-2018查看u-boot.bin,时间是有更新的。
      3、打包,根目录下使用pack命令打包。
      4、烧写。尝试使用了两种方式来烧写,全盘擦除烧写和单独分区烧写,如图:
      a2040311-dbe9-4b8d-855c-86706cca2595-image.png
      ea0d79a9-03be-4431-81e5-4cd2d893bb04-image.png
      烧写成功之后,设备上电,查看开机打印过程,发现并没有所加的打印信息,uboot没有成功更新。

      求教各位,这个uboot应该怎么烧写?谢谢。

      发布在 MR Series
      S
      siguadao
    • 回复: F133 tina,没有 /sys/kernel/debug目录是哪里配置有问题吗?

      @yuzukitsuru
      大神你好,我这边也是无法打开debugfs。使用的是D1s芯片。

      kernel_menuconfig中尝试打开如下开关:
      Kernel hacking > Compile-time checks and compiler options > Debug Filesystem
      没有/sys/kernel/debug目录

      menuconfig中尝试着再打开如下开关也没有用:
      Utilities > Filesystem > debugfs

      搜索debugfs,基本上都是和驱动相关的选项。
      实在不知道还要打开什么开关了,请大神指教。多谢多谢。

      发布在 MR Series
      S
      siguadao
    • 回复: D1-h启动softap_up失败

      @whycan
      根据提示:No such file or directory,我进到iptables源码中去看了下,发现这句打印是在加载动态库的时候打印的,那这样的话就应该是在加载libiptMASQUERADE.so出错了。
      我在D1s上查找该动态库,发现没有。然后到SDK下去找,发现在out编译目录下的iptables/extension目录中有该动态库。
      为了验证我的想法,我就直接把这个动态库拷贝到目标板上,设置好动态库查找路径,然后再执行softap_up,发现提示成功了。但是无法查找到对应ap。使用ps查找进程,也没有hostapd进程,不知道为什么。
      这样的话,有几个疑问:
      1、iptables/extension下的动态库为什么不会拷贝到目标板上呢?
      2、menuconfig中iptables下的一堆mod(上图)应该勾选哪些呢?
      3、softap_up如果启动成功的话,会有hostapd进程的对吗?

      发布在 MR Series
      S
      siguadao
    • 回复: D1-h启动softap_up失败

      @whycan
      我也碰到了这个问题。我在kernel_menuconfig中有关MASQUERADE和iptables相关的选项全勾上了,也没有解决这个问题。还有哪些依赖项需要勾选吗?

      发布在 MR Series
      S
      siguadao
    • 求助,D1s开启热点失败

      WIFI芯片为RTL8723DS芯片,系统启动后lsmod查看已加载ko。
      使用softap_up开启热点报如下错误:

      root@TinaLinux:~# softap_up yscrs 1234567890
      ***************************
      Start hostapd test!
      ***************************
      wpa2-psk!
      Start to set softap!
      Message is: OK
      Set softap finished!
      killall: wpa_supplicant: no process killed
      Start to start softap!
      SoftAP started successfullyHaving catch sig_chld!
      Message is: OK
      Start softap finished!
      Having catch sig_chld!
      Having catch sig_chld!
      Having catch sig_chld!
      Having catch sig_chld!
      Having catch sig_chld!
      Having catch sig_chld!
      iptables v1.4.21: Couldn't load target `MASQUERADE':No such file or directory
      
      Try `iptables -h' or 'iptables --help' for more information.
      Having catch sig_chld!
      enable data forward failed!
      

      论坛中搜索相关帖子,按照帖子https://bbs.aw-ol.com/topic/1963/d1-h%E5%90%AF%E5%8A%A8softap_up%E5%A4%B1%E8%B4%A5中大神所说,在kernel_menuconfig中将有关MASQUERADE的所有选项都选上了,仍然不行。kernel_menuconfig相应选项如下:

      Symbol: IP6_NF_TARGET_MASQUERADE [=y]                                                                                                
      Type  : tristate                                                                                                                     
      Prompt: MASQUERADE target support                                                                                                    
        Location:                                                                                                                          
          -> Networking support (NET [=y])                                                                                                 
            -> Networking options                                                                                                          
              -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                                                           
                -> IPv6: Netfilter Configuration                                                                                           
                  -> IP6 tables support (required for filtering) (IP6_NF_IPTABLES [=y])                                                    
      (1)           -> ip6tables NAT support (IP6_NF_NAT [=y])                                                                             
        Defined at net/ipv6/netfilter/Kconfig:272                                                                                          
        Depends on: NET [=y] && INET [=y] && IPV6 [=y] && NETFILTER [=y] && IP6_NF_IPTABLES [=y] && IP6_NF_NAT [=y]                        
        Selects: NETFILTER_XT_TARGET_MASQUERADE [=y]                                                                                       
                                                                                                                                           
                                                                                                                                           
      Symbol: IP_NF_TARGET_MASQUERADE [=y]                                                                                                 
      Type  : tristate                                                                                                                     
      Prompt: MASQUERADE target support                                                                                                    
        Location:                                                                                                                          
          -> Networking support (NET [=y])                                                                                                 
            -> Networking options                                                                                                          
              -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                                                           
                -> IP: Netfilter Configuration                                                                                             
                  -> IP tables support (required for filtering/masq/NAT) (IP_NF_IPTABLES [=y])                                             
      (2)           -> iptables NAT support (IP_NF_NAT [=y])                                                                               
        Defined at net/ipv4/netfilter/Kconfig:226                                                                                          
        Depends on: NET [=y] && INET [=y] && NETFILTER [=y] && IP_NF_IPTABLES [=y] && IP_NF_NAT [=y]                                       
        Selects: NETFILTER_XT_TARGET_MASQUERADE [=y]                                                                                       
                                                                                                                                           
                                                                                                                                           
      Symbol: NETFILTER_XT_TARGET_MASQUERADE [=y]                                                                                          
      Type  : tristate                                                                                                                     
      Prompt: MASQUERADE target support                                                                                                    
        Location:                                                                                                                          
          -> Networking support (NET [=y])                                                                                                 
            -> Networking options                                                                                                          
              -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                                                           
                -> Core Netfilter Configuration                                                                                            
      (3)         -> Netfilter Xtables support (required for ip_tables) (NETFILTER_XTABLES [=y])                                           
        Defined at net/netfilter/Kconfig:1010                                                                                              
        Depends on: NET [=y] && INET [=y] && NETFILTER [=y] && NETFILTER_XTABLES [=y] && NF_NAT [=y]                                       
        Selects: NF_NAT_MASQUERADE [=y]                                                                                                    
        Selected by [y]:                                                                                                                   
        - IP_NF_TARGET_MASQUERADE [=y] && NET [=y] && INET [=y] && NETFILTER [=y] && IP_NF_IPTABLES [=y] && IP_NF_NAT [=y]                 
        - IP6_NF_TARGET_MASQUERADE [=y] && NET [=y] && INET [=y] && IPV6 [=y] && NETFILTER [=y] && IP6_NF_IPTABLES [=y] && IP6_NF_NAT [=y] 
                                                                                                                                           
                                                                                                                                           
      Symbol: NF_NAT_MASQUERADE [=y]                                                                                                       
      Type  : bool                                                                                                                         
        Defined at net/netfilter/Kconfig:434                                                                                               
        Depends on: NET [=y] && INET [=y] && NETFILTER [=y] && NF_CONNTRACK [=y]                                                           
        Selected by [y]:                                                                                                                   
        - NFT_MASQ [=y] && NET [=y] && INET [=y] && NETFILTER [=y] && NF_TABLES [=y] && NF_CONNTRACK [=y] && NF_NAT [=y]                   
        - NETFILTER_XT_TARGET_MASQUERADE [=y] && NET [=y] && INET [=y] && NETFILTER [=y] && NETFILTER_XTABLES [=y] && NF_NAT [=y]
      

      看提示应该和iptables有关,又把iptables相关选项全选上,仍然不行。如下:

      Symbol: IP6_NF_IPTABLES [=y]                                                                             
      Type  : tristate                                                                                         
      Prompt: IP6 tables support (required for filtering)                                                      
        Location:                                                                                              
          -> Networking support (NET [=y])                                                                     
            -> Networking options                                                                              
              -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                               
      (1)       -> IPv6: Netfilter Configuration                                                               
        Defined at net/ipv6/netfilter/Kconfig:74                                                               
        Depends on: NET [=y] && NETFILTER [=y] && INET [=y] && IPV6 [=y]                                       
        Selects: NETFILTER_XTABLES [=y]                                                                        
        Selected by [y]:                                                                                       
        - IP_VS_IPV6 [=y] && NET [=y] && NETFILTER [=y] && IP_VS [=y] && (IPV6 [=y]=y || IP_VS [=y]=IPV6 [=y]) 
                                                                                                               
                                                                                                               
      Symbol: IP_NF_IPTABLES [=y]                                                                              
      Type  : tristate                                                                                         
      Prompt: IP tables support (required for filtering/masq/NAT)                                              
        Location:                                                                                              
          -> Networking support (NET [=y])                                                                     
            -> Networking options                                                                              
              -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                               
      (2)       -> IP: Netfilter Configuration                                                                 
        Defined at net/ipv4/netfilter/Kconfig:121                                                              
        Depends on: NET [=y] && INET [=y] && NETFILTER [=y]                                                    
        Selects: NETFILTER_XTABLES [=y]
      

      求助各位,不知道还需要怎么设置?

      发布在 MR Series
      S
      siguadao
    • 1 / 1