Also, grub naming versus NTLDR naming.

November 30, 2008 at 14:34 | Posted in Adventures | Leave a comment
Tags: , , , , ,

So, my harddrive went something like:

Slackware, Windows, Extended(Swap)
hda4, hda2, hda3(hda5)

and grub booted windows with hd0,1 and hda2, and NTLDR (C:/boot.ini) booted windows with “default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS” or as I see it, hd0,1.

then I shrunk Windows, added LFS, and my harddrive looked like this:

Slackware, LFS, Windows, Extended(Swap)
hda4, hda1, hda2, hda3(hda5)

Now I got the “hal.dll is missing or corrupt” error. Linux/grub named Windows exactly the same (hda2 or hd0,1) but Windows apparently names for it’s physical position on the harddrive, so it was now hd0,2 as far as NTLDR was concerned. So my new, working NTLDR entry looks like “default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS”.

fucking ndiswrapper, always giving me shit.

November 27, 2008 at 20:09 | Posted in Adventures | 1 Comment
Tags: , , ,

root:~/ndiswrapper-1.53# make
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.53/driver’
Makefile:23: *** Kernel tree not found – please set KBUILD to configured kernel. Stop.
make[1]: Leaving directory `/root/ndiswrapper-1.53/driver’
make: *** [all] Error 2

from ~/ndiswrapper-1.53/driver/Makefile:

# By default, we try to compile the modules for the currently running
# kernel. But it’s the first approximation, as we will re-read the
# version from the kernel sources.
KVERS ?= $(shell uname -r)

# KBUILD is the path to the Linux kernel build tree. It is usually the
# same as the kernel source tree, except when the kernel was compiled in
# a separate directory.
KBUILD ?= $(shell readlink -f /lib/modules/$(KVERS)/build)

ifeq (,$(KBUILD))
$(error Kernel tree not found – please set KBUILD to configured kernel)
endif

I’ve tried setting KBUILD as /usr/src/linux-2.6.22.5, which is the directory of my kernel source, and /usr/src/linux which is the symbolic link to the former, and I’ve tried clearing the variable to nothing at all. None work.

uname -r seems to give Slack’s current running kernel version instead of LFS’, so after typing this, the next thing I will try again is rebooting and compiling from the actual LFS environment. Also, /lib/modules/linux-2.6.22.5/build points to /usr/src/linux-2.6.22.5.

edit; okay, that problem doesn’t exist when LFS is actually booted. Instead I get a warning about “kernel lacks wireless extensions” “wireless drivers will not work”, or something. I jotted it down as it scrolled by. So, it looks like I have to recompile the kernel with wireless extensions. I’m not sure what “wireless extensions” it’s looking for, but I can just modularize a few relevant-looking components and see if it suffices.

running LFS post

November 23, 2008 at 18:22 | Posted in Adventures | Leave a comment
Tags:

chapter 5.13

ncurses package unavailable, got it from http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz. then came across error in ‘make install’ that looks like:

“tic could not build /tools/share/terminfo”

for the most part. fixed with solution from [Clfs-support] Make install of Ncurses failing.


in chapter 5.20,

make -C gnulib-lib

returns

lfs:/lfs/gettext-0.16.1$ make -C gnulib
make: *** gnulib: No such file or directory. Stop.

… and then i realised i was configuring gettext and not gettext-tools and deleted the folder and unpacked a new copy.


in chapter 6.4,

root:/lfs# chroot “$LFS” /tools/bin/env -i \
> HOME=/root TERM=”$TERM” PS1=’\u:\w\$ ‘ \
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
> /tools/bin/bash –login +h
chroot: cannot run command `/tools/bin/env’: No such file or directory

apparently env is missing from the tools’ bin folder. it’s nowhere to be found. i assume it came with bash — i looked for other built-in bash commands such as ‘cd’, which also are not present in /tools/bin.

root:/lfs/tools/bin# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
root:/lfs/tools/bin# PATH=/tools/bin:/bin:/usr/bin
root:/lfs/tools/bin# echo $PATH
/tools/bin:/bin:/usr/bin

then realised again that ENV ISNT EVEN THERE GODDAMN WTF WAS I THINKING.

okay, thanks to guidance from http://www.linuxquestions.org/questions/linux-from-scratch-13/toolsbinenv-…does-not-exist-498776/ I have made uninstall and recompiled and installed coreutils, and tried the command again, and wala. I have no name ! :/


chapter 6.9

vital test suite for glibc

make -k check 2>&1 | tee glibc-check-log

returns

/usr/bin/perl scripts/begin-end-check.pl argp/argp.h assert/assert.h catgets/nl_types.h crypt/crypt.h ctype/ctype.h debug/execinfo.h dirent/dirent.h dlfcn/dlfcn.h elf/elf.h elf/link.h gmon/sys/gmon.h gmon/sys/gmon_out.h gmon/sys/profil.h grp/grp.h iconv/iconv.h iconv/gconv.h inet/netinet/ether.h inet/netinet/icmp6.h inet/netinet/igmp.h inet/netinet/in.h inet/netinet/ip6.h inet/arpa/ftp.h inet/arpa/inet.h inet/arpa/telnet.h inet/arpa/tftp.h inet/protocols/routed.h inet/protocols/rwhod.h inet/protocols/talkd.h inet/protocols/timed.h inet/aliases.h inet/ifaddrs.h inet/netinet/ip6.h inet/netinet/icmp6.h intl/libintl.h io/sys/stat.h io/sys/statfs.h io/sys/vfs.h io/sys/statvfs.h io/fcntl.h io/sys/fcntl.h io/poll.h io/sys/poll.h io/utime.h io/ftw.h io/fts.h io/sys/sendfile.h libio/stdio.h libio/libio.h locale/locale.h locale/langinfo.h locale/xlocale.h login/utmp.h login/lastlog.h login/pty.h malloc/malloc.h malloc/obstack.h malloc/mcheck.h math/math.h math/complex.h math/fenv.h math/tgmath.h misc/sys/uio.h nis/rpcsvc/nis.h nis/rpcsvc/nis_callback.h nis/rpcsvc/nis_tags.h nis/rpcsvc/nislib.h nis/rpcsvc/yp.h nis/rpcsvc/yp_prot.h nis/rpcsvc/ypclnt.h nis/rpcsvc/ypupd.h nptl_db/thread_db.h nptl/sysdeps/pthread/pthread.h nptl/semaphore.h nss/nss.h posix/sys/utsname.h posix/sys/times.h posix/sys/wait.h posix/sys/types.h posix/unistd.h posix/glob.h posix/regex.h posix/wordexp.h posix/fnmatch.h posix/getopt.h posix/tar.h posix/sys/unistd.h posix/sched.h posix/re_comp.h posix/wait.h posix/cpio.h posix/spawn.h pwd/pwd.h resolv/resolv.h resolv/netdb.h resolv/arpa/nameser.h resolv/arpa/nameser_compat.h resource/sys/resource.h resource/sys/vlimit.h resource/sys/vtimes.h resource/ulimit.h rt/aio.h rt/mqueue.h setjmp/setjmp.h shadow/shadow.h signal/signal.h signal/sys/signal.h socket/sys/socket.h socket/sys/un.h stdio-common/printf.h stdio-common/stdio_ext.h stdlib/stdlib.h stdlib/alloca.h stdlib/monetary.h stdlib/fmtmsg.h stdlib/ucontext.h sysdeps/generic/inttypes.h sysdeps/generic/stdint.h stdlib/errno.h stdlib/sys/errno.h string/string.h string/strings.h string/memory.h string/endian.h string/argz.h string/envz.h string/byteswap.h sunrpc/rpc/auth.h sunrpc/rpc/auth_des.h sunrpc/rpc/auth_unix.h sunrpc/rpc/clnt.h sunrpc/rpc/des_crypt.h sunrpc/rpc/key_prot.h sunrpc/rpc/netdb.h sunrpc/rpc/pmap_clnt.h sunrpc/rpc/pmap_prot.h sunrpc/rpc/pmap_rmt.h sunrpc/rpc/rpc.h sunrpc/rpc/rpc_des.h sunrpc/rpc/rpc_msg.h sunrpc/rpc/svc.h sunrpc/rpc/svc_auth.h sunrpc/rpc/types.h sunrpc/rpc/xdr.h sunrpc/rpcsvc/bootparam.h sysvipc/sys/ipc.h sysvipc/sys/msg.h sysvipc/sys/sem.h sysvipc/sys/shm.h termios/termios.h termios/sys/termios.h termios/sys/ttychars.h time/time.h time/sys/time.h time/sys/timeb.h wcsmbs/wchar.h wctype/wctype.h > /sources/glibc-build/begin-end-check.out
make[1]: Target `check’ not remade because of errors.
make[1]: Leaving directory `/sources/glibc-2.5.1′
make: *** [check] Error 2
root:/sources/glibc-build# grep Error glibc-check-log
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/glibc-build/nptl/tst-cancel1.out] Error 1
make[1]: *** [nptl/tests] Error 2
make: *** [check] Error 2
root:/sources/glibc-build#

googling error. choosing to ignore error and continue with installation. fucking POS test suites.

The adventures of fucking up my filesystems.

November 23, 2008 at 10:03 | Posted in Adventures | Leave a comment
Tags: ,

Lololol. Okay. So I opened up gparted during my leenoox session, unmounted windows, shrank it, and added a new partition for LFS. Suddenly, my SLACK partition had no space left? Even though gparted said I had 3gigs at least. Well, I went in as root and emptied the goddamn trash can, and then gparted said I had FORTY free gigabytes. Imagine that. Well, thunar still said I had zero, so I rebooted, shrank my slack partition by half a gig in the livecd, rebooted, and here I am. Everything seems to be fine, which is vaguely irritating. I think the resizefs tool or whatever fixed it. It also didnt stop it from fscking and then concluding that I needed to grow my filesystem to fit the partition again, whereupon rezisefs concluded that fsck was wrong and my filesystem is already the desired size.

Fuck that shit. At least it works now. Here we go, LFS, once more.

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.

Follow

Get every new post delivered to your Inbox.