Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Cannot rebuild kernel with custom DSDT (http://www.linux-archive.org/debian-user/539816-cannot-rebuild-kernel-custom-dsdt.html)

Taylor Brown 06-14-2011 07:40 PM

Cannot rebuild kernel with custom DSDT
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I have a Toshiba L640 laptop that came with a buggy DSDT that prevents
Linux from recognizing the battery. I filed bug #609846 about this and
am following similar reports on the Linux and Launchpad mailing lists:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609846

https://bugzilla.kernel.org/show_bug.cgi?id=34532
https://bugzilla.kernel.org/show_bug.cgi?id=15707

https://bugs.launchpad.net/bugs/703302


As a workaround, I am trying to rebuild the Debian kernel with a
modified DSDT file. I have edited and recompiled the DSDT file per the
following tutorial:

http://techinterplay.com/fix-toshiba-battery-issue-linux.html

That is, I changed "OperationRegion (EMEM, SystemMemory, 0xFF808001,
0xFF)" to
"OperationRegion (EMEM, EmbeddedControl, 0x00, 0xFF)" as well as the
"length" lines. It compiles with zero errors and five warnings.


I followed exactly the instructions on the Debian Wiki page about
overriding the dsdt and rebuilding the official kernel:

http://wiki.debian.org/OverridingDSDT


The compilation fails. I have never (successfully ;-)) compiled a kernel
before, so I would appreciate any advice. Below I have reproduced
exactly the sequence of commands that I tried for the rebuild:

$ apt-get source linux-2.6
$ cd linux-2.6-2.6.32/
$ dch --local +dsdt

/* added comment "custom dsdt" to changelog */


$ vim debian/config/defines

/* changed line from "abiname: 5" to "abiname: dsdt" */


$ make -f debian/rules source-all

/* exited with expected status: */

This target is made to fail intentionally, to make sure
that it is NEVER run during the automated build. Please
ignore the following error, the debian/control file has
been generated SUCCESSFULLY.


$ fakeroot make -f debian/rules.gen setup_amd64_none_amd64
$ cd debian/build/build_amd64_none_amd64/
$ vim .config

/*
changed "CONFIG_STANDALONE=n" to "CONFIG_STANDALONE=y"

changed "# CONFIG_ACPI_CUSTOM_DSDT is not set" to
"CONFIG_ACPI_CUSTOM_DSDT=y"

added 'CONFIG_ACPI_CUSTOM_DSDT_FILE="/root/dsdt/dsdt-fixed.hex""
*/


$ cd ../../..
$ fakeroot make -f debian/rules.gen binary-arch_amd64 binary-indep
DEBIAN_KERNEL_JOBS=4

/*
make fails and exits with error 2. here are the final lines of output
leading up the the error:
*/

CC [M] fs/xfs/linux-2.6/xfs_xattr.o
CC [M] fs/xfs/support/debug.o
CC [M] fs/xfs/support/uuid.o
LD [M] fs/xfs/xfs.o
LD fs/built-in.o
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/taylor/src/linux-2.6-2.6.32/debian/build/build_amd64_none_amd64'
make[1]: *** [debian/stamps/build_amd64_none_amd64_plain] Error 2
make[1]: Leaving directory `/home/taylor/src/linux-2.6-2.6.32'
make: *** [binary-arch_amd64_none_amd64_real] Error 2


Was this error caused by the custom dsdt, by some improper command or
setting, or by a bug in the source?

I'm running an up-to-date installation of Debian GNU/Linux 6.0.1
(squeeze) with the current kernel, 2.6.32-5-amd64. If I can provide any
additional information, let me know, and thanks in advance.


Best Wishes,

Taylor Brown

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN97kQAAoJED72CDEetIMvp8UH/3naLWQ0J0aqrF3EBB2zxpv/
uwhlAjMEwAxfAwh3OljcvdzK4QKWmQBlRTbs/bNdkf658lw8Ou94kG5AJj7Qv2ct
KDXDehtn/Y9xTJ4IKzmlTz8oNO99azdr39iSsiZhYkDYoDWgj14CQrOMckk DUJKJ
7UttBr4nLuXP6HLXYuRvKqoxeYDmSuhaIximmv03RQhYYerQbG KuD21Qy6fMrlc5
1fke4isNHFcK/2CRBFe+E7XNeuYUg4XocNpLk7CLIFTY8NGFpojS7/xKlGHb770o
xJRqYtSYKHPWmKWVn1SV3ZoB1b9ANaelpHk9r7dWa8dioWEID3 bxERNweHOZVXA=
=6Qay
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DF7B916.2050609@nearlyalaugh.com">http://lists.debian.org/4DF7B916.2050609@nearlyalaugh.com

Taylor Brown 06-14-2011 07:40 PM

Cannot rebuild kernel with custom DSDT
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I have a Toshiba L640 laptop that came with a buggy DSDT that prevents
Linux from recognizing the battery. I filed bug #609846 about this and
am following similar reports on the Linux and Launchpad mailing lists:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609846

https://bugzilla.kernel.org/show_bug.cgi?id=34532
https://bugzilla.kernel.org/show_bug.cgi?id=15707

https://bugs.launchpad.net/bugs/703302


As a workaround, I am trying to rebuild the Debian kernel with a
modified DSDT file. I have edited and recompiled the DSDT file per the
following tutorial:

http://techinterplay.com/fix-toshiba-battery-issue-linux.html

That is, I changed "OperationRegion (EMEM, SystemMemory, 0xFF808001,
0xFF)" to
"OperationRegion (EMEM, EmbeddedControl, 0x00, 0xFF)" as well as the
"length" lines. It compiles with zero errors and five warnings.


I followed exactly the instructions on the Debian Wiki page about
overriding the dsdt and rebuilding the official kernel:

http://wiki.debian.org/OverridingDSDT


The compilation fails. I have never (successfully ;-)) compiled a kernel
before, so I would appreciate any advice. Below I have reproduced
exactly the sequence of commands that I tried for the rebuild:

$ apt-get source linux-2.6
$ cd linux-2.6-2.6.32/
$ dch --local +dsdt

/* added comment "custom dsdt" to changelog */


$ vim debian/config/defines

/* changed line from "abiname: 5" to "abiname: dsdt" */


$ make -f debian/rules source-all

/* exited with expected status: */

This target is made to fail intentionally, to make sure
that it is NEVER run during the automated build. Please
ignore the following error, the debian/control file has
been generated SUCCESSFULLY.


$ fakeroot make -f debian/rules.gen setup_amd64_none_amd64
$ cd debian/build/build_amd64_none_amd64/
$ vim .config

/*
changed "CONFIG_STANDALONE=n" to "CONFIG_STANDALONE=y"

changed "# CONFIG_ACPI_CUSTOM_DSDT is not set" to
"CONFIG_ACPI_CUSTOM_DSDT=y"

added 'CONFIG_ACPI_CUSTOM_DSDT_FILE="/root/dsdt/dsdt-fixed.hex""
*/


$ cd ../../..
$ fakeroot make -f debian/rules.gen binary-arch_amd64 binary-indep
DEBIAN_KERNEL_JOBS=4

/*
make fails and exits with error 2. here are the final lines of output
leading up the the error:
*/

CC [M] fs/xfs/linux-2.6/xfs_xattr.o
CC [M] fs/xfs/support/debug.o
CC [M] fs/xfs/support/uuid.o
LD [M] fs/xfs/xfs.o
LD fs/built-in.o
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/taylor/src/linux-2.6-2.6.32/debian/build/build_amd64_none_amd64'
make[1]: *** [debian/stamps/build_amd64_none_amd64_plain] Error 2
make[1]: Leaving directory `/home/taylor/src/linux-2.6-2.6.32'
make: *** [binary-arch_amd64_none_amd64_real] Error 2


Was this error caused by the custom dsdt, by some improper command or
setting, or by a bug in the source?

I'm running an up-to-date installation of Debian GNU/Linux 6.0.1
(squeeze) with the current kernel, 2.6.32-5-amd64. If I can provide any
additional information, let me know, and thanks in advance.


Best Wishes,

Taylor Brown

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN97kQAAoJED72CDEetIMvp8UH/3naLWQ0J0aqrF3EBB2zxpv/
uwhlAjMEwAxfAwh3OljcvdzK4QKWmQBlRTbs/bNdkf658lw8Ou94kG5AJj7Qv2ct
KDXDehtn/Y9xTJ4IKzmlTz8oNO99azdr39iSsiZhYkDYoDWgj14CQrOMckk DUJKJ
7UttBr4nLuXP6HLXYuRvKqoxeYDmSuhaIximmv03RQhYYerQbG KuD21Qy6fMrlc5
1fke4isNHFcK/2CRBFe+E7XNeuYUg4XocNpLk7CLIFTY8NGFpojS7/xKlGHb770o
xJRqYtSYKHPWmKWVn1SV3ZoB1b9ANaelpHk9r7dWa8dioWEID3 bxERNweHOZVXA=
=6Qay
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DF7B916.2050609@nearlyalaugh.com">http://lists.debian.org/4DF7B916.2050609@nearlyalaugh.com

Hugo Vanwoerkom 06-15-2011 02:50 PM

Cannot rebuild kernel with custom DSDT
 
Taylor Brown wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I have a Toshiba L640 laptop that came with a buggy DSDT that prevents
Linux from recognizing the battery. I filed bug #609846 about this and
am following similar reports on the Linux and Launchpad mailing lists:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609846

https://bugzilla.kernel.org/show_bug.cgi?id=34532
https://bugzilla.kernel.org/show_bug.cgi?id=15707

https://bugs.launchpad.net/bugs/703302


As a workaround, I am trying to rebuild the Debian kernel with a
modified DSDT file. I have edited and recompiled the DSDT file per the
following tutorial:

http://techinterplay.com/fix-toshiba-battery-issue-linux.html

That is, I changed "OperationRegion (EMEM, SystemMemory, 0xFF808001,
0xFF)" to
"OperationRegion (EMEM, EmbeddedControl, 0x00, 0xFF)" as well as the
"length" lines. It compiles with zero errors and five warnings.


I followed exactly the instructions on the Debian Wiki page about
overriding the dsdt and rebuilding the official kernel:

http://wiki.debian.org/OverridingDSDT


The compilation fails. I have never (successfully ;-)) compiled a kernel
before, so I would appreciate any advice. Below I have reproduced
exactly the sequence of commands that I tried for the rebuild:

$ apt-get source linux-2.6
$ cd linux-2.6-2.6.32/
$ dch --local +dsdt

/* added comment "custom dsdt" to changelog */


$ vim debian/config/defines

/* changed line from "abiname: 5" to "abiname: dsdt" */


$ make -f debian/rules source-all

/* exited with expected status: */

This target is made to fail intentionally, to make sure
that it is NEVER run during the automated build. Please
ignore the following error, the debian/control file has
been generated SUCCESSFULLY.


$ fakeroot make -f debian/rules.gen setup_amd64_none_amd64
$ cd debian/build/build_amd64_none_amd64/
$ vim .config

/*
changed "CONFIG_STANDALONE=n" to "CONFIG_STANDALONE=y"

changed "# CONFIG_ACPI_CUSTOM_DSDT is not set" to
"CONFIG_ACPI_CUSTOM_DSDT=y"

added 'CONFIG_ACPI_CUSTOM_DSDT_FILE="/root/dsdt/dsdt-fixed.hex""
*/


$ cd ../../..
$ fakeroot make -f debian/rules.gen binary-arch_amd64 binary-indep
DEBIAN_KERNEL_JOBS=4

/*
make fails and exits with error 2. here are the final lines of output
leading up the the error:
*/

CC [M] fs/xfs/linux-2.6/xfs_xattr.o
CC [M] fs/xfs/support/debug.o
CC [M] fs/xfs/support/uuid.o
LD [M] fs/xfs/xfs.o
LD fs/built-in.o
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/taylor/src/linux-2.6-2.6.32/debian/build/build_amd64_none_amd64'
make[1]: *** [debian/stamps/build_amd64_none_amd64_plain] Error 2
make[1]: Leaving directory `/home/taylor/src/linux-2.6-2.6.32'
make: *** [binary-arch_amd64_none_amd64_real] Error 2


Was this error caused by the custom dsdt, by some improper command or
setting, or by a bug in the source?

I'm running an up-to-date installation of Debian GNU/Linux 6.0.1
(squeeze) with the current kernel, 2.6.32-5-amd64. If I can provide any
additional information, let me know, and thanks in advance.




The error info. is not too helpful.
If it were happening to me, I would try the compile again with the
make-kpkg command, part of kernel-package:


make-kpkg --revision <something> --append-to-version <something else>
--initrd kernel_image


Hugo



















--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: itagqk$roe$1@dough.gmane.org">http://lists.debian.org/itagqk$roe$1@dough.gmane.org

Taylor Brown 06-16-2011 11:05 PM

Cannot rebuild kernel with custom DSDT
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey, thanks! I guess it was a bug with the source because after a wait
and an update the kernel compiled fine.


Taylor
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN+owRAAoJED72CDEetIMvZc8H/itUMUvpFfezDQ51X0mGwoId
L9RlwBg29coIJVdyBwhDSM70KEcjLjajTBw/IIlsKFXB2INwd8IdhXpkNLVg4VdG
Jyi8UIPcqwg8hvlH/PVTNFIrdiEVKF6hckUSlryEG46MdlRpVPax/v4IaGmGY+cx
YibrwuhCM2Ix8hTIp/hdREn8bEMwxROPJ3gUT/ZioxqD+fIs+4N5pORuhi9mJhxg
BKAbMtDB8woBdh/r9TJ9Ukzm0pO60dRo/UYigmMJTs48c5FelnJ5jjivAbc/KQXg
l6HP+wI2LQmMQGN5uUqvlWkKRL50ZNxGhAFdvBYXPpnU4lXMc5 FtBA6vq7AdueA=
=cnMo
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DFA8C20.1050504@nearlyalaugh.com">http://lists.debian.org/4DFA8C20.1050504@nearlyalaugh.com

Hugo Vanwoerkom 06-17-2011 03:10 PM

Cannot rebuild kernel with custom DSDT
 
Taylor Brown wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey, thanks! I guess it was a bug with the source because after a wait
and an update the kernel compiled fine.




Great! Glad it worked...

Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: itfqov$sdl$1@dough.gmane.org">http://lists.debian.org/itfqov$sdl$1@dough.gmane.org


All times are GMT. The time now is 07:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.