Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 14:28
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
ArchPup 12.12.2
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 30 of 31 Posts_count   Goto page: Previous 1, 2, 3, ..., 28, 29, 30, 31 Next
Author Message
simargl
Guest


PostPosted: Fri 18 Jan 2013, 14:39    Post_subject:  

After you install package with pacman -U pkgname, type
Code:
modprobe asus_eee

to load module. Is it working?
Back to top
anikin

Joined: 10 May 2012
Posts: 510

PostPosted: 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
View user's profile Send_private_message 
simargl
Guest


PostPosted: 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

Edited_time_total
Back to top
stifiling

Joined: 29 Dec 2007
Posts: 388

PostPosted: 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
View user's profile Send_private_message 
anikin

Joined: 10 May 2012
Posts: 510

PostPosted: 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
View user's profile Send_private_message 
stifiling

Joined: 29 Dec 2007
Posts: 388

PostPosted: 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
View user's profile Send_private_message 
anikin

Joined: 10 May 2012
Posts: 510

PostPosted: 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 !
victorious.png
 Description   
 Filesize   11.22 KB
 Viewed   1230 Time(s)

victorious.png

Back to top
View user's profile Send_private_message 
anikin

Joined: 10 May 2012
Posts: 510

PostPosted: Fri 18 Jan 2013, 17:34    Post_subject:  

simargl wrote:
After you install package with pacman -U pkgname, type
Code:
modprobe asus_eee

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
View user's profile Send_private_message 
simargl
Guest


PostPosted: 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: 510

PostPosted: 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
View user's profile Send_private_message 
stifiling

Joined: 29 Dec 2007
Posts: 388

PostPosted: 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:

Code:
modprobe asus_eee


without you having to manually do it every reboot.
Back to top
View user's profile Send_private_message 
ciento

Joined: 17 Sep 2010
Posts: 180

PostPosted: 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
View user's profile Send_private_message 
darkcity


Joined: 23 May 2010
Posts: 2462
Location: near here

PostPosted: 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 | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send_private_message Visit_website 
simargl
Guest


PostPosted: 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

PostPosted: 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
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 30 of 31 Posts_count   Goto page: Previous 1, 2, 3, ..., 28, 29, 30, 31 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1045s ][ Queries: 13 (0.0138s) ][ GZIP on ]