Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

PMP5580 rom porting to NX008HD8G_WM

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    vermagic #

    How do I check what vermagic # I should be using for cm-10 when I hex-edit the .ko modules?

    Do I use the number that is in the boot image (Mali.ko) I am using (stock boot image with init and *.rc files from cm-10)?

    Comment


      Originally posted by skyhi View Post
      How do I check what vermagic # I should be using for cm-10 when I hex-edit the .ko modules?

      Do I use the number that is in the boot image (Mali.ko) I am using (stock boot image with init and *.rc files from cm-10)?
      The vermagic in the .ko files needs to exactly match the vermagic in the boot.img.

      ShaunMT
      Freaktab Rom Developer

      Subscribe To My Developer Thread For Updates On My Projects: ShaunMT

      https://www.paypalobjects.com/en_US/..._donate_SM.gif

      Comment


        I'm having a heck of time figuring out how wifi is initialized in this tablet - the only .ko file that seems to have anything to do with it is 8188.ko and I don't see it getting insmod anywhere..

        Is it possible to log the hardware that gets initialized in a log during boot or when turning wifi on and off?

        Sorry I am more of a hardware guy myself.

        Comment


          Originally posted by skyhi View Post
          I'm having a heck of time figuring out how wifi is initialized in this tablet - the only .ko file that seems to have anything to do with it is 8188.ko and I don't see it getting insmod anywhere..

          Is it possible to log the hardware that gets initialized in a log during boot or when turning wifi on and off?

          Sorry I am more of a hardware guy myself.

          That is the wifi kernel module. It is normally insmodded by init.rc in the boot image, however, on CT's ROMs, the wifi driver goes in the modules folder and there is an init.d script that loads everything found in the modules folder.

          In any ROM, you can see the driver loaded in the output from the dmesg terminal command. You can also use the lsmod command in the terminal to list all currently loaded modules.

          ShaunMT
          Freaktab Rom Developer

          Subscribe To My Developer Thread For Updates On My Projects: ShaunMT

          https://www.paypalobjects.com/en_US/..._donate_SM.gif

          Comment


            wifi

            wifi is setup in BoardConfig.mk when the rom is compiled. This is CT's ics code, I think he moved the location of dhd.ko in jellybean builds to:
            WIFI_DRIVER_MODULE_PATH := /system/lib/dhd.ko

            Code:
            android_device_ainol_elf2
            # Wifi 
            WIFI_DRIVER := bcm40181 
            WIFI_DRIVER_MODULE_PATH := /system/lib/modules/dhd.ko 
            WIFI_DRIVER_MODULE_NAME := dhd 
            WIFI_DRIVER_MODULE_ARG  := "firmware_path=/etc/wifi/40181/fw_bcm40181a2.bin nvram_path=/etc/wifi/40181/nvram.txt" 
            WIFI_DRIVER_FW_PATH_STA :=/etc/wifi/40181/fw_bcm40181a2.bin 
            WIFI_DRIVER_FW_PATH_AP  :=/etc/wifi/40181/fw_bcm40181a2_apsta.bin 
            WPA_SUPPLICANT_VERSION := VER_0_8_X 
            BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wext 
            BOARD_WPA_SUPPLICANT_DRIVER := WEXT
            ​Archos Gen9 A80S cm-11.0
            Kindle Fire 2 cm-11.0

            Comment


              Originally posted by stevemp View Post
              wifi is setup in BoardConfig.mk when the rom is compiled. This is CT's ics code, I think he moved the location of dhd.ko in jellybean builds to:
              WIFI_DRIVER_MODULE_PATH := /system/lib/dhd.ko

              Code:
              android_device_ainol_elf2
              # Wifi 
              WIFI_DRIVER := bcm40181 
              WIFI_DRIVER_MODULE_PATH := /system/lib/modules/dhd.ko 
              WIFI_DRIVER_MODULE_NAME := dhd 
              WIFI_DRIVER_MODULE_ARG  := "firmware_path=/etc/wifi/40181/fw_bcm40181a2.bin nvram_path=/etc/wifi/40181/nvram.txt" 
              WIFI_DRIVER_FW_PATH_STA :=/etc/wifi/40181/fw_bcm40181a2.bin 
              WIFI_DRIVER_FW_PATH_AP  :=/etc/wifi/40181/fw_bcm40181a2_apsta.bin 
              WPA_SUPPLICANT_VERSION := VER_0_8_X 
              BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wext 
              BOARD_WPA_SUPPLICANT_DRIVER := WEXT

              I think he wanted to know how it is loaded at boot time, which is typically via init.rc, or some other script called by init.rc, such as an init.d script.

              ShaunMT
              Freaktab Rom Developer

              Subscribe To My Developer Thread For Updates On My Projects: ShaunMT

              https://www.paypalobjects.com/en_US/..._donate_SM.gif

              Comment


                dhd.ko

                Originally posted by shaunmt View Post
                I think he wanted to know how it is loaded at boot time, which is typically via init.rc, or some other script called by init.rc, such as an init.d script.

                ShaunMT
                I would have to dig through the source and files more but most likely wifi drivers are built into the kernel. The only insmod I find in any of the scripts is for the mali modules. The modules loaded in init.d are:
                Code:
                #!/system/bin/sh
                #
                
                # network
                insmod /system/lib/modules/tun.ko
                insmod /system/lib/modules/tcp_veno.ko
                echo veno > /proc/sys/net/ipv4/tcp_congestion_control
                
                # usb serial
                insmod /system/lib/modules/cp210x.ko
                insmod /system/lib/modules/pl2303.ko
                
                # gamepads
                insmod /system/lib/modules/xpad.ko
                insmod /system/lib/modules/hid-gaff.ko
                insmod /system/lib/modules/hid-pl.ko
                insmod /system/lib/modules/hid-sony.ko
                
                # misc
                insmod /system/lib/modules/uinput.ko
                ​Archos Gen9 A80S cm-11.0
                Kindle Fire 2 cm-11.0

                Comment


                  Originally posted by stevemp View Post
                  I would have to dig through the source and files more but most likely wifi drivers are built into the kernel. The only insmod I find in any of the scripts is for the mali modules.
                  In stock ROMs it's normally in the middle of init.rc, somewhere shortly after the "on boot" line.

                  In Christian Troy's ROM's its in the Modules script in the init.d folder.

                  ShaunMT

                  P.S. > Actually, it looks like CT puts wifi driver .ko files in the modules folder, but loads them from init.rc in the boot image. When he makes a compatibility patch for a different wifi driver, I wonder if he updates the bootimage to load it from init.rc or if he updates the modules init.d script to load it? Either way would work.
                  Freaktab Rom Developer

                  Subscribe To My Developer Thread For Updates On My Projects: ShaunMT

                  https://www.paypalobjects.com/en_US/..._donate_SM.gif

                  Comment


                    wifi

                    The NXM8000ND_WM uses a Broadcom Bcm40181 chip and the NXM8000ND_WMN uses a Realtek 8188eu chip, no idea how to get the 8188eu to work with CT's elf based roms.
                    ​Archos Gen9 A80S cm-11.0
                    Kindle Fire 2 cm-11.0

                    Comment


                      More great info guys! I'm learning more all the time.

                      Been working trying to figure out how it gets initialized on my WMN tablet and thought I could port it to CT's rom.

                      Comment


                        WiFi working!

                        Woot!

                        In the end I had to copy over my original 'libhardware_legacy.so' file into the cm ROM to get WiFi working on this model.

                        Now to figure out why none of the newer roms will fully boot..

                        Comment


                          any news on porting to WMN models? i'm dying for some cm11 action. any help i can provide i will

                          *edit*
                          could i use one of the porting guides on XDA to port the cm11 from this thread (page 5 i think) to the WMN board using shaun's WMN stock ROM?
                          Last edited by InsaneDDay; 18 May 2014, 08:25.

                          Comment


                            Well, I'm starting to get to the point where I'm not getting much use out of my tablet anymore so I've been thinking about installing a custom rom, the only problem at the moment is that there are only a couple available & I'm not quite sure which would be best for my tablet (NX008HD8G_WM). Any suggestions?
                            Nextbook NX008HD8G - Rooted

                            Comment


                              Originally posted by silver9990 View Post
                              Well, I'm starting to get to the point where I'm not getting much use out of my tablet anymore so I've been thinking about installing a custom rom, the only problem at the moment is that there are only a couple available & I'm not quite sure which would be best for my tablet (NX008HD8G_WM). Any suggestions?
                              If you follow this thread back, you'll find some links for ported versions of Cyanogenmod and possibly AOSP or Paranoid Android as well. Beyond that, you'll just have to do some testing.

                              If you aren't happy with the results, you can always flash back to my slightly modified stock ROM.

                              ShaunMT
                              Freaktab Rom Developer

                              Subscribe To My Developer Thread For Updates On My Projects: ShaunMT

                              https://www.paypalobjects.com/en_US/..._donate_SM.gif

                              Comment


                                So, I finally installed cm10.1 on my NX008HD8G & everything seems to be running fine for now [edit]the front camera is flipped in portrait mode[/edit] but for some reason when I enable usb debugging it's unable to install the drivers for it. Also, it shows up as a Nexus 7 so are the the drivers I'm going to need?
                                Last edited by silver9990; 23 August 2015, 13:39.
                                Nextbook NX008HD8G - Rooted

                                Comment

                                Working...
                                X