From 4aa6dce17a9326c08738d70c3bb14214aff8db4a Mon Sep 17 00:00:00 2001 From: Matthias Walther Date: Mon, 12 Mar 2018 03:28:28 +0100 Subject: [PATCH] docs: hardware.rst: explain how to get the image name for a new device (#1335) --- docs/dev/hardware.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/dev/hardware.rst b/docs/dev/hardware.rst index 511d47c1..aa0462a1 100644 --- a/docs/dev/hardware.rst +++ b/docs/dev/hardware.rst @@ -31,6 +31,10 @@ can work:: lua -e 'print(require("platform_info").get_image_name())' +While porting Gluon to a new device, it might happen that the profile name is un- +known. Best practise is to generate an image first by using an arbitrary value +and then executing the lua command on the device and use its output from then on. + The second parameter defines the name of the image files generated by LEDE. Usually, it is also the LEDE profile name; for devices that still use the old image build code, a third parameter with the LEDE profile name can be passed. The profile names