@@ -228,3 +228,59 @@ More than one selftest can be run by passing multiple arguments to
228228
229229From there the bisection can either be run by hand, or fully automated by
230230creating a script to build the kernel and run the qemu test.
231+
232+ Using the powerpc debian image
233+ ------------------------------
234+
235+ The debian powerpc image in ` root-disks ` can be used to test big endian kernels.
236+ It also exercises COMPAT, which is not tested on ppc64le these days.
237+
238+ The kernel needs virtio drivers as well as 9PFS built-in. For example to get it
239+ booting with ` g5_defconfig ` :
240+
241+ ```
242+ $ cd linux
243+ $ ~/ci-scripts/scripts/misc/apply-configs.py 9p guest_configs cgroups-y
244+ $ make g5_defconfig vmlinux
245+ $ ~/ci-scripts/boot/qemu-g5+debian
246+ ```
247+
248+ To do interactive testing, run the boot script with ` --interactive ` , the login
249+ is ` root/linuxppc ` .
250+
251+ Once logged in, to install packages a few steps are needed.
252+
253+ If the network doesn't come up by default:
254+ ```
255+ dhclient $(basename $(ls -1d /sys/class/net/en*))
256+ ```
257+
258+ If you need to use a http proxy:
259+ ```
260+ echo 'Acquire::http::Proxy "http://proxy.org:3128";' > /etc/apt/apt.conf.d/00proxy
261+ ```
262+
263+ Tell apt to update package lists while ignoring missing GPG keys:
264+ ```
265+ apt -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update
266+ ```
267+
268+ At that point you should be able to install the updated keyring:
269+ ```
270+ apt install -y --allow-unauthenticated debian-ports-archive-keyring
271+ ```
272+
273+ And update package lists again:
274+ ```
275+ apt update
276+ ```
277+
278+ Then you should be able to install packages, eg:
279+ ```
280+ apt install gcc
281+ ```
282+
283+ If you still can't install packages due to GPG errors, you can disable package authentication with:
284+ ```
285+ echo 'APT::Get::AllowUnauthenticated "true";' > /etc/apt/apt.conf.d/00allow-unauth
286+ ```
0 commit comments