[okl4-developer] Boot L4Linux from vga

zhiyi huang hzy at cs.otago.ac.nz
Thu Nov 22 14:08:44 EST 2007


Thanks Hal. It moved forward, but is now stuck at "Please press ENTER  
to activate this console". Any suggestions?
Cheers,
Zhiyi

On 21/11/2007, at 6:23 PM, Hal Ashburner wrote:

> zhiyi huang wrote:
>> Hi Hal,
>> I have followed your following instructions, and I did boot  
>> L4Linux from
>> console I/O. Thanks:)
>>
>> However, I have got the following bug message while booting the  
>> kernel:
>> "Kernel BUG at include2/asm/dma-mapping.h: 98"
>>
>> I did notice your reminder of "Be aware that none of the drivers
>> requiring dma are enabled in the release."
>>
>> Could it be possible that there is still some drivers requiring  
>> dma that
>> are enabled? How can I find them and disable them?
>>
>> I got the error message after root file system is mounted read- 
>> only, by
>> the way.
>>
>> Thanks for your help!
>
> Hi Zhiyi,
> I'm guessing here, do you have a 3COM ethernet driver on this machine?
> If so, try removing these lines
> CONFIG_NET_VENDOR_3COM=y
> CONFIG_VORTEX=y
> from l4linux_config_ia32[_vga|_fb]*
> and/or commenting out the lines that initialise networking in the root
> filesystem's /etc/init.d/rcS
>
>
> Please find attached a patch that does this. Obviously I haven't  
> tested
> this.
>
> Kind regards,
> Hal Ashburner
> diff -urN okl4_release_1.5.2/linux/kernel-2.6.11-v2/ 
> l4linux_config_ia32_vga okl4_release_1.5.2.changed/linux/ 
> kernel-2.6.11-v2/l4linux_config_ia32_vga
> --- okl4_release_1.5.2/linux/kernel-2.6.11-v2/ 
> l4linux_config_ia32_vga	2007-09-30 09:16:36.000000000 +1000
> +++ okl4_release_1.5.2.changed/linux/kernel-2.6.11-v2/ 
> l4linux_config_ia32_vga	2007-11-21 16:18:24.000000000 +1100
> @@ -213,8 +213,8 @@
>  CONFIG_MII=y
>  # CONFIG_HAPPYMEAL is not set
>  # CONFIG_SUNGEM is not set
> -CONFIG_NET_VENDOR_3COM=y
> -CONFIG_VORTEX=y
> +# CONFIG_NET_VENDOR_3COM is not set
> +# CONFIG_VORTEX is not set
>  # CONFIG_TYPHOON is not set
>  # CONFIG_SMC91X is not set
>
> diff -urN okl4_release_1.5.2/linux/rootfs-2.6.11-v2/etc/init.d/rcS  
> okl4_release_1.5.2.changed/linux/rootfs-2.6.11-v2/etc/init.d/rcS
> --- okl4_release_1.5.2/linux/rootfs-2.6.11-v2/etc/init.d/rcS	 
> 2007-09-30 09:17:43.000000000 +1000
> +++ okl4_release_1.5.2.changed/linux/rootfs-2.6.11-v2/etc/init.d/ 
> rcS	2007-11-21 16:17:45.000000000 +1100
> @@ -54,36 +54,36 @@
>  ping -c 2 127.0.0.1
>
>  # if eth0 exists, then bring it up.
> -if ifconfig eth0
> -    then ifconfig eth0 up
> -	if [ `uname -r` = '2.6.10-i386l4_pc99' ]
> -	then
> -		ifconfig eth0 10.0.0.2
> -		route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.0.1
> -		echo "Configured net eth0 device"
> -		echo "pinging the internet..."
> -		ping -c 2 203.143.174.140
> -		if [ $? -ne 0 ]
> -		then
> -			echo "could not reach the internet, perhaps you haven't setup"
> -			echo "your tap device and iptables rules to do NAT?"
> -		else
> -			echo "found the internet! :-)"
> -		fi
> -
> -	else
> -		# for Pleb2
> -		echo "configuring network for " `uname -a`
> -		udhcpc
> -		if [ $? -ne 0 ]
> -		then
> -			echo "Configured net eth0 device"
> -		else
> -			echo "net eth0 device configuration failed"
> -		fi
> -	fi
> -
> -fi
> +#if ifconfig eth0
> +#    then ifconfig eth0 up
> +#	if [ `uname -r` = '2.6.10-i386l4_pc99' ]
> +#	then
> +#		ifconfig eth0 10.0.0.2
> +#		route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.0.1
> +#		echo "Configured net eth0 device"
> +#		echo "pinging the internet..."
> +#		ping -c 2 203.143.174.140
> +#		if [ $? -ne 0 ]
> +#		then
> +#			echo "could not reach the internet, perhaps you haven't setup"
> +#			echo "your tap device and iptables rules to do NAT?"
> +#		else
> +#			echo "found the internet! :-)"
> +#		fi
> +#
> +#	else
> +#		# for Pleb2
> +#		echo "configuring network for " `uname -a`
> +#		udhcpc
> +#		if [ $? -ne 0 ]
> +#		then
> +#			echo "Configured net eth0 device"
> +#		else
> +#			echo "net eth0 device configuration failed"
> +#		fi
> +#	fi
> +#
> +#fi
>
>
>  # Start dropbear if it exists

=======================
Zhiyi Huang, PhD
Senior Lecturer
Dept of Computer Science
University of Otago
Email: hzy at cs.otago.ac.nz
Phone: 0064-3-4795680
Fax: 0064-3-4798529


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20071122/eaad336f/attachment-0001.htm 


More information about the Developer mailing list