Author |
Message |
simargl
Guest
|
Posted: Fri 18 Jan 2013, 14:39 Post subject:
|
|
After you install package with pacman -U pkgname, type
to load module. Is it working?
|
Back to top
|
|
 |
anikin
Joined: 10 May 2012 Posts: 1020
|
Posted: Fri 18 Jan 2013, 14:55 Post subject:
|
|
simargl wrote: | Is it working? |
Not yet.
Code: | [root@archpup eeepc-linux]# ln -s /usr/src/linux-3.6.8 /lib/modules/3.6.8/build
ln: failed to create symbolic link '/lib/modules/3.6.8/build': File exists
[root@archpup eeepc-linux]# makepkg --asroot
==> Making package: eeepc-linux 0.39a1-8 (Fri Jan 18 19:48:32 CET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
warning: database file for 'core' does not exist
warning: database file for 'extra' does not exist
warning: database file for 'community' does not exist
==> Retrieving Sources...
-> Found asus_eee-0.39a1.tar.gz
-> Found asus_eee-0.39a1-spinlock-kernel-2.6.39.patch
==> Validating source files with md5sums...
asus_eee-0.39a1.tar.gz ... Passed
asus_eee-0.39a1-spinlock-kernel-2.6.39.patch ... Passed
==> Extracting Sources...
-> Extracting asus_eee-0.39a1.tar.gz with bsdtar
==> Starting build()...
==> Patching...
patching file asus_eee.c
Makefile:47: /lib/modules/3.6.8/build/.config: No such file or directory
make: *** No rule to make target `/lib/modules/3.6.8/build/.config'. Stop.
==> ERROR: A failure occurred in build().
Aborting...
[root@archpup eeepc-linux]# |
|
Back to top
|
|
 |
simargl
Guest
|
Posted: Fri 18 Jan 2013, 15:01 Post subject:
|
|
Hm.. for me it compiled in seconds, must be those wrong links - that is only change I made
in this newer kernel. Did you try stifiling's advice: Code: |
ln -s /usr/src/linux-3.6.8 /lib/modules/3.6.8/build
ln -s /usr/src/linux-3.6.8 /lib/modules/3.6.8/source |
Last edited by simargl on Fri 18 Jan 2013, 15:05; edited 1 time in total
|
Back to top
|
|
 |
stifiling
Joined: 29 Dec 2007 Posts: 388
|
Posted: Fri 18 Jan 2013, 15:03 Post subject:
|
|
anikin,
do:
Code: | rm -rf /lib/modules/3.6.8/build
ln -s /usr/src/linux-3.6.8 /lib/modules/3.6.8/build |
and then try makepkg --asroot
|
Back to top
|
|
 |
anikin
Joined: 10 May 2012 Posts: 1020
|
Posted: Fri 18 Jan 2013, 15:45 Post subject:
|
|
almost there
Code: | [[root@archpup eeepc-linux]# makepkg --asroot
==> Making package: eeepc-linux 0.39a1-8 (Fri Jan 18 20:39:28 CET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found asus_eee-0.39a1.tar.gz
-> Found asus_eee-0.39a1-spinlock-kernel-2.6.39.patch
==> Validating source files with md5sums...
asus_eee-0.39a1.tar.gz ... Passed
asus_eee-0.39a1-spinlock-kernel-2.6.39.patch ... Passed
==> Extracting Sources...
-> Extracting asus_eee-0.39a1.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
==> Patching...
patching file asus_eee.c
make: nothing to be done for 'patch'.
make[1]: Entering directory `/tmp/eeepc-linux/src/asus_eee-0.39a1'
cd /lib/modules/3.6.8/build && make -C /lib/modules/3.6.8/build M=/tmp/eeepc-linux/src/asus_eee-0.39a1 modules
make[2]: Entering directory `/usr/src/linux-3.6.8'
CC [M] /tmp/eeepc-linux/src/asus_eee-0.39a1/asus_eee.o
Building modules, stage 2.
MODPOST 1 modules
LD [M] /tmp/eeepc-linux/src/asus_eee-0.39a1/asus_eee.ko
make[2]: Leaving directory `/usr/src/linux-3.6.8'
make[1]: Leaving directory `/tmp/eeepc-linux/src/asus_eee-0.39a1'
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Adding install file...
-> Compressing package...
==> Finished making: eeepc-linux 0.39a1-8 (Fri Jan 18 20:39:34 CET 2013)
[root@archpup eeepc-linux]# pacman -U eeepc-linux 0.39a1-8
loading packages...
error: 'eeepc-linux': could not find or read package
[root@archpup eeepc-linux]#
|
|
Back to top
|
|
 |
stifiling
Joined: 29 Dec 2007 Posts: 388
|
Posted: Fri 18 Jan 2013, 16:07 Post subject:
|
|
the package is created and somewhere on your computer. where it is though...i don't know. u'd have a better idea of narrowing down exactly where the .pkg.tar.xz file created to. after you pinpoint it's location though, u'd run the command
Code: | pacman -U /path/to/eeepc-linux.pkg.tar.xz |
i'm thinking it created to somewhere in the eeepc-linux folder that you ran the 'makepkg --asroot' command from, or maybe somewhere in the /tmp folder.
|
Back to top
|
|
 |
anikin
Joined: 10 May 2012 Posts: 1020
|
Posted: Fri 18 Jan 2013, 16:23 Post subject:
|
|
I did it!
Code: | [root@archpup eeepc-linux]# pacman -U /tmp/eeepc-linux/eeepc-linux-0.39a1-8-i686.pkg.tar
loading packages...
error: '/tmp/eeepc-linux/eeepc-linux-0.39a1-8-i686.pkg.tar': could not find or read package
[root@archpup eeepc-linux]# pacman -U /tmp/eeepc-linux/eeepc-linux-0.39a1-8-i686.pkg.tar.xz
loading packages...
resolving dependencies...
looking for inter-conflicts...
Targets (1): eeepc-linux-0.39a1-8
Total Installed Size: 0.02 MiB
Proceed with installation? [Y/n] Y
(1/1) checking package integrity [----------------------] 100%
(1/1) loading package files [----------------------] 100%
(1/1) checking for file conflicts [----------------------] 100%
(1/1) checking available disk space [----------------------] 100%
(1/1) installing eeepc-linux [----------------------] 100%
==> Remember to add 'asus_eee' to a file '/etc/modules-load.d/asus_eee.conf' to load it on boot.
[root@archpup eeepc-linux]# |
Thank you, simargl and stifiling !
Description |
|
Filesize |
11.22 KB |
Viewed |
1487 Time(s) |

|
|
Back to top
|
|
 |
anikin
Joined: 10 May 2012 Posts: 1020
|
Posted: Fri 18 Jan 2013, 17:34 Post subject:
|
|
simargl wrote: | After you install package with pacman -U pkgname, type
to load module. Is it working? |
One last remaining issue. Can't load it yet.
Code: | [root@archpup ~]# modprobe asus_eee
modprobe: FATAL: Module asus_eee not found.
[root@archpup ~]# |
|
Back to top
|
|
 |
simargl
Guest
|
Posted: Fri 18 Jan 2013, 17:48 Post subject:
|
|
Sorry, I forgot to change install directory, so open PKGBUILD and change last line, this:
Code: | install -Dm644 $srcdir/asus_eee-$pkgver/asus_eee.ko $pkgdir/usr/lib/modules/$(uname -r)/kernel/acpi/asus_eee.ko || return 1 |
with this
Code: | install -Dm644 $srcdir/asus_eee-$pkgver/asus_eee.ko $pkgdir/lib/modules/$(uname -r)/kernel/acpi/asus_eee.ko || return 1 |
Repeat everything
Code: | pacman -R eeepc-linux
makepkg --asroot
pacman -U eeepc-linux-0.39a1-8-i686.pkg.tar.xz |
and then it will work.
|
Back to top
|
|
 |
anikin
Joined: 10 May 2012 Posts: 1020
|
Posted: Fri 18 Jan 2013, 18:25 Post subject:
|
|
Redone.
It loads without a hitch and is working now. Sweet. Although, these 2 lines don't look good - should I be concerned? And there's no directory '/etc/modules-load.d', let alone 'asus_eee.conf' file. Should I create them?
Code: | (1/1) installing eeepc-linux
depmod: WARNING: could not open /lib/modules/3.6.8/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/3.6.8/modules.builtin: No such file or directory
==> Remember to add 'asus_eee' to a file '/etc/modules-load.d/asus_eee.conf' to load it on boot.' to a file '/etc/modules-load.d/asus_eee.conf' to load it on boot.
[root@archpup eeepc-linux]# |
|
Back to top
|
|
 |
stifiling
Joined: 29 Dec 2007 Posts: 388
|
Posted: Fri 18 Jan 2013, 19:35 Post subject:
|
|
anikin wrote: | Redone.
It loads without a hitch and is working now. Sweet. Although, these 2 lines don't look good - should I be concerned? And there's no directory '/etc/modules-load.d', let alone 'asus_eee.conf' file. Should I create them?
Code: | (1/1) installing eeepc-linux
depmod: WARNING: could not open /lib/modules/3.6.8/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/3.6.8/modules.builtin: No such file or directory
==> Remember to add 'asus_eee' to a file '/etc/modules-load.d/asus_eee.conf' to load it on boot.' to a file '/etc/modules-load.d/asus_eee.conf' to load it on boot.
[root@archpup eeepc-linux]# |
|
if it's working fine then just ignore that. one thing u might want to do though is edit the /etc/rc.d/MODULESCONFIG file and add the module to the addlist line to look like this:
ADDLIST=' asus_eee '
that pretty much does the same thing as:
without you having to manually do it every reboot.
|
Back to top
|
|
 |
ciento
Joined: 17 Sep 2010 Posts: 225
|
Posted: Mon 21 Jan 2013, 07:06 Post subject:
|
|
Using wvdial for internet connection, required 2 steps,
(not unique to ArchPup):
rm /var/lock
then
mkdir /var/lock
(if the first lock is a file, not a folder)
Evidently wvdial wants to make it's own lock file,
and needs a lock folder to put it in, and if not found,
constantly seeks it, /dev/ttyACM0 used by some usb modems
will then report the device is busy.
Copy or create /etc/wvdial.conf
Thanks Simargl, for adding this crucial piece of net connectivity!
|
Back to top
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2549 Location: near here
|
Posted: Mon 21 Jan 2013, 11:38 Post subject:
|
|
here are a couple of useful pages for people wanting to interact with the Arch User Repositories
https://wiki.archlinux.org/index.php/AUR_Helpers
About Arch build scripts
https://wiki.archlinux.org/index.php/PKGBUILD
_________________ helping Wiki for help
|
Back to top
|
|
 |
simargl
Guest
|
Posted: Thu 24 Jan 2013, 14:35 Post subject:
|
|
ciento, I'm glad that you got it to work. /var/lock was pointing to non-existing folder /run/lock, so I edited build script to make that folder and problem is now solved.
darkcity, also there is template PKGBUILD in /usr/share/pacman, so making new one will be easier.
|
Back to top
|
|
 |
pakwarung
Joined: 25 Jan 2013 Posts: 8
|
Posted: Fri 25 Jan 2013, 05:51 Post subject:
|
|
ciento wrote: | Using wvdial for internet connection, required 2 steps,
(not unique to ArchPup):
rm /var/lock
then
mkdir /var/lock
(if the first lock is a file, not a folder)
Evidently wvdial wants to make it's own lock file,
and needs a lock folder to put it in, and if not found,
constantly seeks it, /dev/ttyACM0 used by some usb modems
will then report the device is busy.
Copy or create /etc/wvdial.conf
Thanks Simargl, for adding this crucial piece of net connectivity! |
how to using it in terminal step by step? please i am newbie
cannot connect internet from usb modem sierra wireless 598u
|
Back to top
|
|
 |
|