WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: HP-2000 Ralink RT5390R Wireless Adapter  (Read 19980 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #45 on: June 27, 2019, 10:40:10 AM »
Hi mnemonic76
I think you can update the configuration and recompile the modules, but I'm going to let one of the smart kids like Juanito or curaga
advise you on how that might be done.

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #46 on: June 27, 2019, 10:53:18 AM »
Also, this laptop has a 64 bit AMD E-300. Would there be any benefit to compiling the 64 bit TCL kernel?

Thanks,

mnemonic76

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #47 on: June 27, 2019, 01:11:40 PM »
Code: [Select]
config RT2800PCI_RT53XX
       bool "rt2800pci - Include support for rt53xx devices (EXPERIMENTAL)"
Yep, so it was one of the possibly unstable drivers and so not enabled. Juanito has posted good instructions in the past, but I don't have them at hand.

A 64-bit kernel's main advantage on 32-bit userspace is access to more RAM. If you have 4gb or less, there's not much point.
The only barriers that can stop you are the ones you create yourself.

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #48 on: June 27, 2019, 09:44:03 PM »
 Well, what do you think Juanito? Is this link the information I need to recompile with that option on?
http://wiki.tinycorelinux.net/wiki:custom_kernel

Thanks,

mnemonic76

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #49 on: June 27, 2019, 10:32:03 PM »
Hi mnemonic76
Don't use that, it looks too old.

The basic steps appear to be shown here:
http://forum.tinycorelinux.net/index.php/topic,16534.msg98498.html#msg98498
and reply #17 in the same thread. You'll want:
http://tinycorelinux.net/10.x/x86/release/src/kernel/linux-4.19.10-patched.txz
and:
http://tinycorelinux.net/10.x/x86/release/src/kernel/config-4.19.10-tinycore
Change references of  3.8.13  to  4.19.10  and adjust the directory references to match where you downloaded the above files.
When you run  make menuconfig  you want to find  config RT2800PCI_RT53XX  and enable it.

If you get into trouble, ask questions.

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #50 on: June 28, 2019, 07:52:24 AM »
I got through the menuconfig, saved as .config then:

Code: [Select]
tc@box:~/kernel/linux-4.19.10$ make menuconfig
scripts/kconfig/mconf  Kconfig


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

tc@box:~/kernel/linux-4.19.10$ make modules
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/poll.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/export.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  UPD     include/generated/uapi/linux/version.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  UPD     include/generated/bounds.h
/bin/sh: bc: not found
make[1]: *** [Kbuild:42: include/generated/timeconst.h] Error 127
make: *** [Makefile:1102: prepare0] Error 2
tc@box:~/kernel/linux-4.19.10$


just a 'make' command gets same Error 127message.

Thanks,

mnemonic76

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #51 on: June 28, 2019, 07:55:31 AM »
Load the bc extension

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #52 on: June 28, 2019, 08:00:47 AM »
Alright... fingers are crossed it has progressed much further...
Thanks,

mnemonic76

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #53 on: June 28, 2019, 10:39:17 AM »
Wow! it is still going how long does a typical kernel build take? Is this a compile that is happening now?

What factors mainly affect how long it takes? Disk? Processor? RAM? all of the above?

Thanks,

mnemonic76

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #54 on: June 28, 2019, 12:36:12 PM »
Hi mnemonic76
I got through the menuconfig, saved as .config then: ...
After you executed  cd linux-4.19.10-patched  you did remember to download:
http://tinycorelinux.net/10.x/x86/release/src/kernel/config-4.19.10-tinycore
and then copy it to  .config :
Code: [Select]
cp ../config-4.19.10-tinycore ./.configprior to executing:
Code: [Select]
make menuconfig
Also note, executing  make mrproper  cleans up files prior to running any make command, including deleting  ,config.

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #55 on: June 28, 2019, 12:43:35 PM »
Yes, I did that. It is still running... What is it doing line by line?

Sent from my SM-G950U using Tapatalk

Thanks,

mnemonic76

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #56 on: June 28, 2019, 12:52:30 PM »
Distro kernels do take a long time to build. I'm on a reasonably powerful computer, 6 cores, and the kernels take 15+min IIRC. If you're on the E-300, which is relatively slow, several hours is expected.
The only barriers that can stop you are the ones you create yourself.

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #57 on: June 28, 2019, 01:22:52 PM »
I am trying to understand exactly what I am doing here.

The command I executed was "make modules".

Was that the correct command or simply "make"

What is the difference? Also what is the difference between the generic linux kernel (available at kernel.org) and this (or any other) distribution's kernel?

Thanks,

mnemonic76

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #58 on: June 28, 2019, 01:33:07 PM »
Uh oh... I was just reading https://www.linux.com/learn/intro-to-linux/2018/4/how-compile-linux-kernel-0 and it says :
Quote
Do note: You will need at least 12GB of free space on your local drive to get through the kernel compilation process. So make sure you have enough space.

I am running off a small USB stick!

Am I screwed?
Thanks,

mnemonic76

Offline mnemonic76

  • Newbie
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #59 on: June 28, 2019, 02:55:31 PM »
I think this is done... I dont know if I hit a key or something looks like some garbage was returned. How can I tell if it ws sucessful? What is the next step?

Code: [Select]
  CC      sound/usb/usx2y/snd-usb-usx2y.mod.o
  LD [M]  sound/usb/usx2y/snd-usb-usx2y.ko
  CC      sound/x86/snd-hdmi-lpe-audio.mod.o
  LD [M]  sound/x86/snd-hdmi-lpe-audio.ko
  CC      virt/lib/irqbypass.mod.o
  LD [M]  virt/lib/irqbypass.ko
tc@box:~/kernel/linux-4.19.10$ tc@box:~/kernel/linux-4.19.10/include/generated$
ls
sh: tc@box:~/kernel/linux-4.19.10/include/generated$: not found
tc@box:~/kernel/linux-4.19.10$ autoconf.h       timeconst.h.tmp  utsrelease.h
sh: autoconf.h: not found
tc@box:~/kernel/linux-4.19.10$ bounds.h         uapi/
sh: bounds.h: not found
tc@box:~/kernel/linux-4.19.10$ tc@box:~/kernel/linux-4.19.10/include/generated$
ls
sh: tc@box:~/kernel/linux-4.19.10/include/generated$: not found
tc@box:~/kernel/linux-4.19.10$ autoconf.h       timeconst.h.tmp  utsrelease.h
sh: autoconf.h: not found
tc@box:~/kernel/linux-4.19.10$ bounds.h         uapi/
sh: bounds.h: not found
Thanks,

mnemonic76