# Configs we already tried

## Surface RT 1

### @Leander's trial and fail

*Note to members of the gitbook: I don't know if it is useful to make this person-specific.*

#### #001

This hangs at without supplying device tree with dtb=\
If device tree is supplied, cpuidle complains at printed.\
`[ 0.000000] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2` \
`[ 0.000000] cfg80211: failed to load regulatory.db`

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSn9s-iosQb9ehOUWkO%2F-MSnA9w12Hg9YJgUXVJE%2F.config?alt=media&token=aa756bba-3ead-4be8-835f-0721c2b5269f>" %}
\#001 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSn9s-iosQb9ehOUWkO%2F-MSnASfpu41_qXPeVXwy%2Ftegra30-microsoft-surfaceRT-test1.dts?alt=media&token=0679639d-1520-468c-b0fc-f0722075338c>" %}
\#001 device tree
{% endfile %}

{% hint style="info" %}
Testing without device tree from here on
{% endhint %}

#### #002

Changed:`CONFIG_CFG80211=n` \
`[ 0.000000] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2` \
`[ 0.000000] cfg80211: failed to load regulatory.db`\
This is issue doesn't exist anymore, it just freezes at `[ 0.000000] Freeing unused kernel memory: 1024K`

Note the line, clock should be 100kHz`[ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns`

`[ 0.000000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled` \
`[ 0.000000] Warning: unable to open an initial console.`\
It looks like it's using some serial and then is unable to open a console. -> No device tree so it doesn't know /dev/ttyS0 (UART-A)

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnBV8VpF11hoy9BmAP%2F-MSnCT88NM0dgvjC7teI%2F.config?alt=media&token=1732e81e-f86f-4f74-87fa-2f176640bb19>" %}
\#002 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnDEK9w1QmBAL4z7AV%2F-MSnDaYdQGLGv7EKDRmV%2Flog.txt?alt=media&token=af803d6e-3e9a-4102-b701-6c302ad58d57>" %}
\#002 log
{% endfile %}

#### #003

`CONFIG_FB_EFI=y`\
`CONFIG_CMDLINE="console=ttyS0,115200 console=tty0 earlyprintk initcall_debug sched_debug lpj=10000"`

It booted, then disabled uart and printed to the screen. Log only contains print from uart. Stuck at the same line.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnKRHgVdb1hCMQ2RPj%2F-MSnLiGINTTvQmEd39BF%2F.config?alt=media&token=9ae771a9-e4a0-4446-8ca8-afd2f6d60653>" %}
\#003 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnKRHgVdb1hCMQ2RPj%2F-MSnLq6zZNHbI6ALVFOp%2Flog.txt?alt=media&token=78d6160f-3609-4ebd-b541-578b8c775a4a>" %}
\#003 log
{% endfile %}

#### #004

`CONFIG_CMDLINE="console=ttyS0,115200 console=tty0 earlycon earlyprintk initcall_debug sched_debug lpj=10000"`

Log should be the same apart from the cmdline. Again, it displayed to display, so log doesn't include that output.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnYWsdidk05bSru3K7%2F-MSnZimbmanlZ2ZVAekv%2F.config?alt=media&token=0b1603d2-fa44-48bc-b049-5d56667cb12d>" %}
\#004 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnYWsdidk05bSru3K7%2F-MSn_AIkXqHKAh4Lo7D5%2Flog.txt?alt=media&token=2847f559-9776-428d-8a19-e4bc2215c4f2>" %}
\#004 log
{% endfile %}

#### #005

`CONFIG_CMDLINE="console=ttyS0,115200 earlycon earlyprintk initcall_debug sched_debug lpj=10000"`

Screen with a cursor, all output on uart. But because there is no device tree, no console from initrd.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnaGOUaKppmNnSzhTc%2F-MSnbE9RfEUt8GgFjund%2F.config?alt=media&token=22495359-7d27-4d4e-8d61-4c3782d18482>" %}
\#005 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnaGOUaKppmNnSzhTc%2F-MSnbNyW1jYeZS-cfUB6%2Flog.txt?alt=media&token=bf58f86b-5878-438a-ba4f-bbd7a505927e>" %}
\#005 log
{% endfile %}

{% hint style="info" %}
Testing with device tree from here on
{% endhint %}

#### #006

Nothing changed in config. Only added device tree.

Kernel panic: `[ 0.000000] Unable to handle kernel NULL pointer dereference at virtual address 00000010`Has to do with cpuidle. You can also see complaints about a bad device tree.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnbWcQHh3WZXffnGYi%2F-MSngW7QyDlKlOoMUFid%2F.config?alt=media&token=6d575e61-a746-4870-b91b-74141f5d0d80>" %}
\#006 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnbWcQHh3WZXffnGYi%2F-MSngaQgcMCr2gT55Lsk%2Flog.txt?alt=media&token=892baa06-b056-4687-82bd-21c36193808c>" %}
\#006 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSngeyFwq5wPE3ldNtG%2F-MSnhbfhtcuy59FQrmnU%2Ftegra30-microsoft-surfaceRT.dts?alt=media&token=0166b919-d7c5-4c9b-8e59-92f797b6ad91>" %}
\#006 device tree
{% endfile %}

#### #007

Only device tree edits.

Screen has no cursor anymore, only backlight is turned on. You can't print something on it with `echo hello >> /dev/fb0` or `echo hello >> /dev/tty0`

Successful boot to Buildroot.

Note: Log has a lot of entries two times.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnhf4_gwGiW4Ze-7YG%2F-MSnkCEMPj8ZUJX_MSKr%2F.config?alt=media&token=720fa6e9-221d-48ba-989f-a40890e07442>" %}
\#007 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnhf4_gwGiW4Ze-7YG%2F-MSnkGBUkCIh5nk8giix%2Flog.txt?alt=media&token=8a679a3c-f92d-4828-b162-800dbec66fb3>" %}
\#007 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnhf4_gwGiW4Ze-7YG%2F-MSnkJpxgKZD6DDTVwav%2Ftegra30-microsoft-surfaceRT.dts?alt=media&token=3cd88443-96e0-49a5-9dcc-ec1bc66c3959>" %}
\#007 device tree
{% endfile %}

#### #008

`CONFIG_VGA_ARB=n`\
`CONFIG_TEGRA_HOST1X=n`\
`CONFIG_DRM=n`

No different screen behaviour.

Log has some commands at the bottom.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnknNYh8Hy721cjM4v%2F-MSns7afEkh0JYZsE4FA%2F.config?alt=media&token=f4238e92-3a85-47ad-bee7-e80d84528210>" %}
\#008 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnknNYh8Hy721cjM4v%2F-MSnsHCp4Xi6CPsknZoh%2Flog.txt?alt=media&token=a556f87b-7c8d-4757-ab47-b26fce933c35>" %}
\#008 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSnknNYh8Hy721cjM4v%2F-MSnsTt48sqYrNLJauuH%2Ftegra30-microsoft-surfaceRT.dts?alt=media&token=094144ec-3505-4458-88ba-b1745ecb68b4>" %}
\#008 device tree
{% endfile %}

#### #009

No config changed. Only device tree edits. Added nodes to it until dtc didn't complain about anything.

Some strange screen behaviour.

`[ 0.000000] tegra20-cpufreq tegra20-cpufreq: operating points not found` \
`[ 0.000000] tegra20-cpufreq tegra20-cpufreq: please update your device tree` Looks like some cpu frequency nodes have to be added to device tree.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSqqu8wLZ6-hRXzwPsp%2F-MSqvzbzMBHt1XZERzBN%2F.config?alt=media&token=9ee6e685-9fb8-41d7-b4d0-f73a1b03b3d9>" %}
\#009 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSqqu8wLZ6-hRXzwPsp%2F-MSqw6ybthscwCqT-dlh%2Flog.txt?alt=media&token=c1ae95cc-5177-4b78-8a93-2fd4f2f3aea1>" %}
\#009 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSqqu8wLZ6-hRXzwPsp%2F-MSqwB2y4iSm_TPPuuWH%2Ftegra30-microsoft-surfaceRT.dts?alt=media&token=4bb13676-a1dd-425d-9add-d6f2df449b1a>" %}
\#009 device tree
{% endfile %}

#### #010

Only device tree edits.

Screen still doesn't work.

Boots fine to Buildroot. Log has commands at the bottom.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSqwMas9zQY4r-BC1Cc%2F-MSr-LgUsORyVXIfxwYt%2F.config?alt=media&token=e44c10e4-5244-4efa-9d05-efbcea60084e>" %}
\#010 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSqwMas9zQY4r-BC1Cc%2F-MSr-SztRYpqxtuWNcRG%2Flog.txt?alt=media&token=8398305e-f1e5-4a82-8a02-0226cc8b3a24>" %}
\#010 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSqwMas9zQY4r-BC1Cc%2F-MSr-aheRIinLOq_9BoM%2Ftegra30-microsoft-surfaceRT.dts?alt=media&token=4b5ebfb4-a45c-4ec1-ba46-d5e920dd0e0b>" %}
\#010 device tree
{% endfile %}

#### #011

`CONFIG_CMDLINE="console=ttyS0,115200 console=tty0 earlyprintk initcall_debug sched_debug lpj=10000"`

Found out that screen works, but it gets cleared when Busybox (from ramdisk) starts. At least I think at that point it gets cleared, not 100% sure.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSr-kAjWjB5Jzr9CTdK%2F-MSrHroYfxk5LUazg_MW%2F.config?alt=media&token=ad7efa98-9fa8-4b99-ba5f-70d122a002ed>" %}
\#011 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSr-kAjWjB5Jzr9CTdK%2F-MSrI37EnJTmen8PUJ5P%2Flog.txt?alt=media&token=7b2d4fbc-753b-46ea-be74-c4878e90150b>" %}
\#011 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSr-kAjWjB5Jzr9CTdK%2F-MSrI6tUDBiAQDt7IsKw%2Ftegra30-microsoft-surfaceRT.dts?alt=media&token=d276fc01-daf6-4e48-b301-f1560e8bbe67>" %}
\#011 device tree
{% endfile %}

#### #012

`CONFIG_CMDLINE="console=ttyS0,115200 earlyprintk initcall_debug sched_debug lpj=10000"`

Minimal device tree with sd-card+emmc+uart, it includes tegra30.dtsi

No display output with this command line, but you get log output when adding `console=tty0`, but afterwards it stops around when Busybox takes over.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSrIBpz38vXld9pTyNA%2F-MSsD1azqcxbYAuMqLDf%2F.config?alt=media&token=bf0504dc-7648-4da6-a5de-599cae1a4e52>" %}
\#012 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSrIBpz38vXld9pTyNA%2F-MSsDDe5qPbVx_Q07Mai%2Flog.txt?alt=media&token=24558f59-516a-43e7-af14-70ca10684b55>" %}
\#012 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSrIBpz38vXld9pTyNA%2F-MSsDJgTTEKK_YUoB9aB%2Ftegra30-microsoft-surfaceRT-test2.dts?alt=media&token=56a779a1-0042-4888-bd25-301fe4bc1e40>" %}
\#012 device tree
{% endfile %}

#### #013

Added a raspberry pi rootfs. Specifying root= option with efi shell

Display stops working after the line `[ 251.431349] tegra-devfreq 6000c800.actmon: Failed to get emc clock`

Log contains output from rootfs.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSsENz7M-ng3fylFvQu%2F-MSsZnhDIpRTkKVwO-6j%2F.config?alt=media&token=8f659cf8-dbb1-4591-8660-124c43cfe472>" %}
\#013 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSsENz7M-ng3fylFvQu%2F-MSsZrNQU2N5X22cLsYV%2Flog.txt?alt=media&token=d7149e44-ac90-4489-995a-3b7e5dc9c4dc>" %}
\#013 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSsENz7M-ng3fylFvQu%2F-MSsZw9wbu92rQBi_5GX%2Ftegra30-microsoft-surfaceRT-test2.dts?alt=media&token=39a534a3-fbe1-4e0b-aa41-705c3a7e0f0c>" %}
\#013 device tree
{% endfile %}

{% hint style="info" %}
Config reseted. Started from a new one.
{% endhint %}

#### #014

`CONFIG_EFI_STUB=y` \
`CONFIG_EFI=y`\
`CONFIG_CMDLINE="console=ttyS0,115200n8 earlyprintk initcall_debug sched_debug lpj=10000 boot_delay=50"`\
`CONFIG_CMDLINE_EXTEND=y`\
`CONFIG_SMP=n`\
`CONFIG_CACHE_L2X0=n`\
`CONFIG_EARLY_PRINTK=y`\
`CONFIG_DEBUG_TEGRA_UART=y`\
`CONFIG_TEGRA_DEBUG_UARTA=y`\
`CONFIG_BOOT_PRINTK_DELAY=y`

`CONFIG_BOOT_PRINTK_DELAY=y` and `boot_delay=50(cmdline)` are necessary so mmc driver gets loaded early enough.

Log contains a few commands from rootfs.

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSs_4bOAhLfk-YEaQ39%2F-MSsfPKUEQnjStb9m_HY%2F.config?alt=media&token=d1fa3bd1-e634-4217-8a7c-ef931b4f0646>" %}
\#014 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSs_4bOAhLfk-YEaQ39%2F-MSsfT8sRjaLgOY3Wgur%2Flog.txt?alt=media&token=35632e43-3632-4998-987b-851730b48b6d>" %}
\#014 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MSs_4bOAhLfk-YEaQ39%2F-MSsfWzYMRcdH0FIM7ox%2Ftegra30-microsoft-surfaceRT-test2.dts?alt=media&token=2bb5c646-9994-41ae-8940-2458b453e13a>" %}
\#014 device tree
{% endfile %}

#### #015

I'm not sure what changed.

Working display with booted raspberry pi os!

![](https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MT0Kdl31nmBu746PDCW%2F-MT0ZgF041J6PkY6Lygp%2FIMG_20210208_131108.jpg?alt=media\&token=ca125967-bbbb-4b8f-b8da-a90f327a3108)

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MT0Kdl31nmBu746PDCW%2F-MT0bDIXoMmurzTKUi8Q%2F.config?alt=media&token=1bea3b45-a631-4914-8471-4e0c93ae3ede>" %}
\#015 .config
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MT0Kdl31nmBu746PDCW%2F-MT0bJYR1HQiLKPwBMHz%2Flog.txt?alt=media&token=9f0cd682-0ee7-4c8c-bc8f-104b06631ebe>" %}
\#015 log
{% endfile %}

{% file src="<https://2395005476-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJQb34R_xPz0ll0scbM%2F-MT0bS-9GJka1YhlZFlI%2F-MT0tVomsu2kUyLp73oi%2Ftegra30-microsoft-surfaceRT-test1.dts?alt=media&token=59f083f4-5611-4d08-b375-1fa138cb0e08>" %}
\#015 device tree
{% endfile %}

## Surface RT 2
