Michael Walle
6509c3fe1c
boot: android: fix booting without a ramdisk
...
android_image_get_ramdisk() will return an error if there is no ramdisk.
Using the android image without a ramdisk worked until commit
1ce8e10f3b4b ("image: Fix up ANDROID_BOOT_IMAGE ramdisk code") because
the return code wasn't checked until then. Return -ENOENT in case
there is no ramdisk and translate that into -ENOPKG in the calling
code, which will then indicate "no ramdisk" to its caller
(boot_get_ramdisk()).
This way, we can get rid of the "*rd_data = *rd_len = 0;" in the error
path, too.
With this, I'm able to boot a linux kernel using fastboot again:
fastboot --base 0x41000000 --header-version 2 --dtb /path/to/dtb \
--cmdline "root=/dev/mmcblk0p1 rootwait" boot path/to/Image
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20240729213657.2550935-1-mwalle@kernel.org
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-08-22 09:23:33 +02:00
..
2024-05-20 13:35:03 -06:00
2024-07-31 16:51:54 +02:00
2024-08-13 09:31:19 -03:00
2024-07-31 09:54:53 +02:00
2024-08-09 18:35:23 +08:00
2024-07-22 13:47:57 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-08-08 09:27:50 +02:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-26 01:28:11 +02:00
2023-12-28 12:02:56 -05:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-02-15 10:38:34 +01:00
2024-05-20 13:35:03 -06:00
2024-07-15 00:17:27 +01:00
2024-06-13 16:30:48 -06:00
2024-07-29 15:01:04 -06:00
2024-07-18 07:40:30 -06:00
2024-05-20 13:35:03 -06:00
2024-07-18 13:51:30 -06:00
2024-04-18 08:29:35 -06:00
2024-06-24 13:34:52 -06:00
2024-05-20 13:35:03 -06:00
2024-02-13 15:38:49 -05:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-03-21 06:56:13 +01:00
2023-12-28 12:02:56 -05:00
2024-01-29 22:35:02 -05:00
2024-08-01 15:33:19 -06:00
2024-01-16 17:05:29 -05:00
2024-01-09 14:58:33 +01:00
2024-03-21 06:56:13 +01:00
2024-03-21 06:56:13 +01:00
2024-08-02 15:16:51 -03:00
2024-07-31 16:51:54 +02:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-04-02 09:08:07 +02:00
2024-04-02 09:08:07 +02:00
2024-07-29 15:01:04 -06:00
2024-06-07 10:47:59 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-06-10 11:43:37 +02:00
2024-07-29 15:01:04 -06:00
2024-05-01 08:39:16 +02:00
2024-06-30 13:58:31 +02:00
2024-04-20 08:22:24 +02:00
2024-07-16 17:09:33 -06:00
2024-06-14 12:59:07 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-01-19 10:57:36 +08:00
2024-05-03 12:22:58 -06:00
2024-07-29 15:01:04 -06:00
2024-06-07 14:05:03 -06:00
2024-04-18 08:29:35 -06:00
2024-07-09 09:15:37 +02:00
2024-06-28 17:30:45 -06:00
2024-01-07 13:45:07 -07:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-05-24 13:40:03 -06:00
2024-05-24 13:40:04 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-04-08 13:04:48 +02:00
2024-01-24 11:12:11 -05:00
2024-05-20 13:35:03 -06:00
2024-08-22 09:23:33 +02:00
2024-08-13 08:28:24 -03:00
2024-04-05 09:39:18 -03:00
2024-02-08 09:01:22 -03:00
2024-05-20 13:35:03 -06:00
2023-12-21 11:59:49 -05:00
2024-06-19 12:07:44 -06:00
2024-06-19 12:07:44 -06:00
2024-07-29 15:01:04 -06:00
2024-07-30 14:31:24 -06:00
2024-05-20 13:35:03 -06:00
2024-03-02 12:26:56 -05:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-01-07 13:45:07 -07:00
2024-07-29 15:01:04 -06:00
2024-04-12 16:23:06 -06:00
2024-01-09 14:58:33 +01:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-01-24 11:12:11 -05:00
2024-08-08 09:28:05 +02:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-06-13 16:27:07 -06:00
2024-01-24 11:12:11 -05:00
2024-05-20 13:35:03 -06:00
2024-03-22 15:50:28 -04:00
2024-03-02 12:26:19 -05:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-05-02 10:34:34 -06:00
2024-05-20 13:35:03 -06:00
2024-07-31 08:29:16 +02:00
2024-01-24 11:12:11 -05:00
2024-07-29 15:01:04 -06:00
2024-01-24 11:12:11 -05:00
2024-08-05 16:10:36 +02:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-05-22 08:55:29 -06:00
2024-06-20 11:41:43 -06:00
2024-01-09 10:08:52 +01:00
2024-07-29 15:01:04 -06:00
2024-01-24 11:12:11 -05:00
2024-06-30 13:58:31 +02:00
2024-06-30 13:58:31 +02:00
2024-04-04 10:45:27 +02:00
2024-08-08 09:28:00 +02:00
2024-07-29 15:01:04 -06:00
2024-03-22 10:16:13 +01:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-03-21 06:56:13 +01:00
2024-07-31 16:52:51 +02:00
2024-05-20 13:35:03 -06:00
2024-05-22 08:55:29 -06:00
2024-06-16 12:14:18 +02:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-08-05 16:13:26 +02:00