Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport to uBoot 2018.7 #19

Merged
merged 1 commit into from
Nov 30, 2022
Merged

Conversation

jeanparpaillon
Copy link

No description provided.

@jeanparpaillon jeanparpaillon merged commit 35f5889 into develop Nov 30, 2022
@jeanparpaillon jeanparpaillon deleted the CG-395-fx-uboot-emmc-booting branch November 30, 2022 14:04
@@ -71,7 +71,7 @@ BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have we gone back to an older version?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into this: nerves-project#286 and it could be related to this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vs-pp yes, it is related to the above mentioned issue, as I have no real need for upgrading

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeanparpaillon. Thanks for reply. I am running the latest by cloning from https://github.com/nerves-project/nerves_system_bbb on "the stock Seed Beagle Bone Green"

And I see it is using 2021.10. So I am a bit confused.

Are we trying to downgrade u-boot from what is the latest version in https://github.com/nerves-project/nerves_system_bbb. If so why?

U-Boot SPL 2021.10 (Nov 06 2022 - 21:49:53 +0000)
Trying to boot from MMC1


U-Boot 2021.10 (Nov 06 2022 - 21:49:53 +0000)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Global external warm reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
WDT:   Started with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from MMC... OK
Board: BeagleBone Black
BeagleBone Black:
Model: SeeedStudio BeagleBone Green:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57

Thanks,
Venkat

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vs-pp oops, I think there is a misunderstanding here. This fork is dedicated to our own board, which is a derivative of Beaglebone Black with its own DeviceTree overlay.
As you can see in the discussion with @fhunleth there is no standard way of switching from SD-card to eMMC boot for this BSP. I have a patch from Frank that worked with uBoot 2018.1 but not with 2021.10.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are logs from Beagle Bone black and it seems to be ok running U-Boot SPL 2021.10. So still wondering why do we need to downgrade?

I don't have Zola board now to try the image.

U-Boot SPL 2021.10 (Nov 06 2022 - 21:49:53 +0000)
Trying to boot from MMC1


U-Boot 2021.10 (Nov 06 2022 - 21:49:53 +0000)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
WDT:   Started with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from MMC... OK
Board: BeagleBone Black
BeagleBone Black:
Model: BeagleBoard.org BeagleBone Black Wireless:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   Could not get PHY for ethernet@4a100000: addr 0
eth2: ethernet@4a100000
board_name=[BBBW] ...
loading /zImage.a ...
2861016 bytes read in 184 ms (14.8 MiB/s)
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb ...
loading /boot/am335x-boneblack-uboot-univ.dtb ...
215402 bytes read in 21 ms (9.8 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo ...
1614 bytes read in 32 ms (48.8 KiB/s)
uboot_overlays: loading /lib/firmware/BB-HDMI-TDA998x-00A0.dtbo ...
5330 bytes read in 36 ms (144.5 KiB/s)
uboot_overlays: loading /lib/firmware/BB-BBBW-WL1835-00A0.dtbo ...
3536 bytes read in 22 ms (156.3 KiB/s)
debug: [console=ttyS0,115200n8 coherent_pool=1M bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p2 rootfstype=squashfs rootwait coherent_pool=1M net.ifnames=0 omap_wdt.early_enable=1 omap_wdt.timer_margin=120 quiet] ...
debug: [bootz 0x82000000 - 88000000] ...
Kernel image @ 0x82000000 [ 0x000000 - 0x2ba7d8 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ff67000, end 8fffffff ... OK

Starting kernel ...

[    0.164068] l3-aon-clkctrl:0000:0: failed to disable
[    5.954095] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_03'
[    5.954122] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[    5.965871] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    6.209204] pinctrl-single 44e10800.pinmux: pin PIN74 already requested by 481a6000.serial; cannot claim for leds
[    6.219875] pinctrl-single 44e10800.pinmux: pin-74 (leds) status -22
[    6.226331] pinctrl-single 44e10800.pinmux: could not request pin 74 (PIN74) from group pinmux_bt_pins  on device pinctrl-single
[    6.238123] leds-gpio leds: Error applying setting, reverse things back
[    6.254979] omap_voltage_late_init: Voltage driver support not added
Erlang/OTP 25 [erts-13.1.2] [source] [32-bit] [smp:1:1] [ds:1:1:10] [async-threads:1]

Interactive Elixir (1.13.4) - press Ctrl+C to exit (type h() ENTER for help)
████▄▄    ▐███
█▌  ▀▀██▄▄  ▐█
█▌  ▄▄  ▀▀  ▐█   N  E  R  V  E  S
█▌  ▀▀██▄▄  ▐█
███▌    ▀▀████
test_c2 0.1.0 (4c4bac47-05f0-5b7b-6b09-28643e3f4953) arm bbb
  Uptime       : 8 seconds
  Clock        : 2020-07-25 00:00:00 UTC

  Firmware     : Valid (A)               Applications : 36 started
  Memory usage : 56 MB (11%)             Part usage   : 1885 MB (2%)
  Hostname     : nerves-5789             Load average : 0.22 0.05 0.02

  usb0         : 172.31.111.69/30, fe80::28ab:97ff:fe54:df37/64

Nerves CLI help: https://hexdocs.pm/nerves/iex-with-nerves.html

Toolshed imported. Run h(Toolshed) for more info.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I maintain 2 versions of this BSP, one booting off of SD-CARD, one off of eMMC. The patch between those versions only apply to uBoot 2018.7

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jeanparpaillon.

How is the BSP selected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants