I've just modify the script of /etc/init.d/afbinit for kernel 2.6.x Daniel van Eeden a écrit : > Probaly related to bug #269742 > It does work with kernel 2.4 > > On Thu, 2006-01-05 at 18:21 +0100, Giulio Sichel wrote: > > Package: afbinit > Version: 1.0-1 > > I've just upgraded my u30 to linux 2.6.15 and afbinit doesn't run > anymore so I can't start X11. This is what afbinit reports to me: > > Mater:~# afbinit /dev/fb0 /usr/lib/afb.ucode > mmap user regs: Invalid argument >
-- Cordialement, Sébastien LANGE _(__)_ Secrétaire d'Ornix '-e e -'__,--.__) (°> Groupe d'utilisateur (o_o) ) //\ des logiciels libres \. /___. | V_/_ dans l'Orne ||| )/ )/ http://ornix.org //_(/_(/_( Registered Linux-User #313144 Registered LFS-ID #12095
#!/bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin # This only applies to UltraSPARC's [ `uname -m` = "sparc64" ] || exit 0 # The microcode loader binary and the microcode itself must exist. if [ ! -x /usr/sbin/afbinit -o ! -f /usr/lib/afb.ucode ]; then exit fi case "$1" in start) NbFrameBuffer=`dmesg | grep ffb | wc -l` if [ $NbFrameBuffer -eq 0 ] then echo "Frame Buffer not found !" else while [ $NbFrameBuffer -ne 0 ] do let NbFrameBuffer-=1 echo -n "FB$NbFrameBuffer: Loading Elite3D microcode... "; echo -e '\r' /usr/sbin/afbinit /dev/fb$NbFrameBuffer /usr/lib/afb.ucode echo -n "done."; echo -e '\r' done fi ;; stop|restart|force-reload) # Nothing ;; *) echo "Usage: $0 start" >&2 exit 1 ;; esac exit 0