View Issue Details

IDProjectCategoryView StatusLast Update
0000140WoR ImagerRaspberry Pi 4 (ARM64)public2021-04-27 15:42
ReporterRgA59 Assigned ToMario  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformRaspberry Pi 4B 8GB v1.4OSWoROS Version21364.1
Product Version2.0.1 
Summary0000140: total_mem=xxxx doesn't work as expected
Description

In UEFI mode, I disable the 3GB memory limit and then I add total_mem=4096 to config.txt, after a reboot the OS still sees the full 8GB as usable.
The reason I'm trying to limit memory is because in GPT mode with 8GB usable Windows crashes constantly. If I flash in MBR mode, no crashes but Windows doesn't see more than 4GB. I'd like to find a sweet spot where I can use GPT with more than 4GB without crashing.

Per Mario's recommendation, I've tried bcdedit "removememory" command but it doesn't work either. I'm stuck at Pi 3GB, 4GB in MBR mode with limit disable or the full 8GB usable in GPT mode with constant GSODs.

Steps To Reproduce

see description

Additional Information

https://github.com/pftf/RPi4/issues/145
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=310025

TagsNo tags attached.

Activities

RgA59

RgA59

2021-04-23 05:04

reporter   ~0000238

WoR.2021-04-22 19_41_28.1389.log (11,272 bytes)   
2021-04-22 19:41:28.1389 [info] Windows on Raspberry 64-bit (version 2.0.1)
2021-04-22 19:41:28.2170 [info] Copyright � 2018-2020 Mario Balanica. All Rights Reserved.
2021-04-22 19:41:28.2170 [info] OS: Windows 10 Pro ver 2009 (21364.1.amd64fre.co_release.210416-1504)
2021-04-22 19:41:28.2170 [info] OS language: en-US
2021-04-22 19:41:28.7325 [info] Loaded language: en-US
2021-04-22 19:41:28.8262 [info] Checking for updates...
2021-04-22 19:41:31.1538 [info] No updates found.
2021-04-22 19:41:31.4974 [info] Loading disks...
2021-04-22 19:41:31.9349 [info] Disk 2 - KINGSTON  SA400S37120G SCSI Disk Device - External hard disk media - 111 GB
2021-04-22 19:41:31.9349 [info] Disk 1 - ST9500325AS - Fixed hard disk media - 465 GB
2021-04-22 19:41:31.9349 [info] ? Disk 0 - Lexar 128GB SSD - Fixed hard disk media - 119 GB
2021-04-22 19:41:31.9505 [info] 3 disk(s) found
2021-04-22 19:41:34.6691 [info] Selected disk: Disk 2 - KINGSTON  SA400S37120G SCSI Disk Device - External hard disk media - 111 GB
2021-04-22 19:41:35.8402 [info] Selected device: Raspberry Pi 4 [ARM64]
2021-04-22 19:41:41.5420 [info] Selected image (ISO): 21364.1.210416-1504.CO_RELEASE_CLIENTPRO_OEMRET_A64FRE_EN-US.ISO
2021-04-22 19:41:41.6669 [info] Mounting the ISO image...
2021-04-22 19:41:44.6609 [info] ISO file mounted on: E:\
2021-04-22 19:41:44.6709 [info] Found WIM image: E:\sources\install.wim
2021-04-22 19:41:44.8407 [info] Selected edition: Windows 10 Pro build 21364.1
2021-04-22 19:41:51.3340 [info] Drivers package source: server
2021-04-22 19:41:51.3491 [info] Drivers package remote repository: worproject/RPi-Windows-Drivers
2021-04-22 19:41:51.4276 [debug] Verifying the local asset...
2021-04-22 19:41:51.4276 [debug] Local asset ID: "34732105"
2021-04-22 19:41:51.4276 [debug] Getting the latest release from "worproject/RPi-Windows-Drivers"
2021-04-22 19:41:52.3403 [debug] Release name: "Version 0.9", ID: "41207938"
2021-04-22 19:41:52.3559 [debug] Getting the latest asset from release "41207938"
2021-04-22 19:41:52.3559 [debug] Asset name filter: "RPi4_Windows_ARM64"
2021-04-22 19:41:52.3559 [debug] Asset name: "RPi4_Windows_ARM64_Drivers_v0.9.zip", ID: "34732105"
2021-04-22 19:41:52.3559 [debug] The local asset is up-to-date!
2021-04-22 19:41:55.2947 [info] UEFI package source: server
2021-04-22 19:41:55.3098 [info] UEFI package remote repository: pftf/RPi4
2021-04-22 19:41:55.3727 [debug] Verifying the local asset...
2021-04-22 19:41:55.3727 [debug] Local asset ID: "35170241"
2021-04-22 19:41:55.3727 [debug] Getting the latest release from "pftf/RPi4"
2021-04-22 19:41:55.5942 [debug] Release name: "v1.26", ID: "41537538"
2021-04-22 19:41:55.5942 [debug] Getting the latest asset from release "41537538"
2021-04-22 19:41:55.5942 [debug] Asset name: "RPi4_UEFI_Firmware_v1.26.zip", ID: "35170241"
2021-04-22 19:41:55.5942 [debug] The local asset is up-to-date!
2021-04-22 19:42:20.8653 [info] -- Installation details --
2021-04-22 19:42:20.8653 [info] Disk
2021-04-22 19:42:20.8653 [info]   Index: 2
2021-04-22 19:42:20.8653 [info]   Name: KINGSTON  SA400S37120G SCSI Disk Device
2021-04-22 19:42:20.8653 [info]   Type: External hard disk media
2021-04-22 19:42:20.8653 [info]   Size: 111
2021-04-22 19:42:20.8967 [info] Device
2021-04-22 19:42:20.8967 [info]   Type: RPi4-ARM64
2021-04-22 19:42:20.8967 [info] Image
2021-04-22 19:42:20.8967 [info]   Format: ISO
2021-04-22 19:42:20.8967 [info]   Index: 1
2021-04-22 19:42:20.8967 [info]   Name: Windows 10 Pro
2021-04-22 19:42:20.8967 [info]   Arch: ARM64
2021-04-22 19:42:20.9121 [info]   Build: 21364.1
2021-04-22 19:42:20.9121 [info] Drivers package
2021-04-22 19:42:20.9121 [info]   FilePath: worproject/RPi-Windows-Drivers
2021-04-22 19:42:20.9121 [info]   ExtractedPath: D:\Raspberry\WoR_Release_2.0.1\res\drivers\RPi4-ARM64
2021-04-22 19:42:20.9278 [info] UEFI package
2021-04-22 19:42:20.9278 [info]   FilePath: pftf/RPi4
2021-04-22 19:42:20.9278 [info]   ExtractedPath: D:\Raspberry\WoR_Release_2.0.1\res\bootpackage\RPi4-ARM64
2021-04-22 19:42:20.9278 [info] Options
2021-04-22 19:42:20.9278 [info]   UseLZXCompression: False
2021-04-22 19:42:20.9434 [info]   PartitionScheme: GPT
2021-04-22 19:42:20.9434 [info]   ImageDeployer: WIMGAPI
2021-04-22 19:42:20.9434 [info]   MemoryLimit: 0
2021-04-22 19:42:20.9595 [info]   RecoveryEnabled: False
2021-04-22 19:42:20.9595 [info] Boot config
2021-04-22 19:42:20.9595 [info]   Path: D:\Raspberry\WoR_Release_2.0.1\res\bootpackage\RPi4-ARM64\_wor_boot_config.txt
2021-04-22 19:42:20.9595 [info]   Contents:
2021-04-22 19:42:20.9595 [info]      arm_64bit=1
2021-04-22 19:42:20.9595 [info]      enable_uart=1
2021-04-22 19:42:20.9746 [info]      uart_2ndstage=1
2021-04-22 19:42:20.9746 [info]      enable_gic=1
2021-04-22 19:42:20.9904 [info]      armstub=RPI_EFI.fd
2021-04-22 19:42:20.9904 [info]      disable_commandline_tags=1
2021-04-22 19:42:20.9904 [info]      disable_overscan=1
2021-04-22 19:42:20.9904 [info]      device_tree_address=0x1f0000
2021-04-22 19:42:20.9904 [info]      device_tree_end=0x200000
2021-04-22 19:42:20.9904 [info]      dtoverlay=miniuart-bt
2021-04-22 19:42:20.9904 [info]      
2021-04-22 19:42:21.0216 [info] CompressionRequired: False
2021-04-22 19:42:21.0216 [info] -- End of installation details --
2021-04-22 19:42:21.0216 [info] The installation process has started!
2021-04-22 19:42:21.0216 [info] Formatting the target device...
2021-04-22 19:42:21.0371 [debug] Launch diskpart.exe with the following commands: select disk 2 , clean , exit
2021-04-22 19:42:21.3495 [debug] diskpart.exe process output:
2021-04-22 19:42:21.3495 [debug] Standard output:

Microsoft DiskPart version 10.0.21364.1

Copyright (C) Microsoft Corporation.
On computer: LENOVO

DISKPART> 
Disk 2 is now the selected disk.

DISKPART> 
DiskPart succeeded in cleaning the disk.

DISKPART> 
Leaving DiskPart...

2021-04-22 19:42:24.8804 [info] The target device has been erased!
2021-04-22 19:42:24.8804 [info] Allocated partition letters:
2021-04-22 19:42:24.8804 [info] Windows partition: K
2021-04-22 19:42:24.8804 [info] Boot partition: L
2021-04-22 19:42:24.8956 [info] Creating the partitions...
2021-04-22 19:42:24.8956 [debug] Launch diskpart.exe with the following commands: select disk 2 , convert gpt , create partition primary size=128 , format fs=fat32 quick label=BOOT , assign letter=L , create partition msr size=16 , create partition primary , format fs=ntfs quick label=Windows , assign letter=K , exit
2021-04-22 19:42:29.7382 [debug] diskpart.exe process output:
2021-04-22 19:42:29.7382 [debug] Standard output:

Microsoft DiskPart version 10.0.21364.1

Copyright (C) Microsoft Corporation.
On computer: LENOVO

DISKPART> 
Disk 2 is now the selected disk.

DISKPART> 
DiskPart successfully converted the selected disk to GPT format.

DISKPART> 
DiskPart succeeded in creating the specified partition.

DISKPART> 

    0 percent completed
  100 percent completed


DiskPart successfully formatted the volume.

DISKPART> 
DiskPart successfully assigned the drive letter or mount point.

DISKPART> 
DiskPart succeeded in creating the specified partition.

DISKPART> 
DiskPart succeeded in creating the specified partition.

DISKPART> 

    0 percent completed
    0 percent completed
    0 percent completed
    0 percent completed
    0 percent completed
    0 percent completed
    0 percent completed
    0 percent completed
    0 percent completed
    0 percent completed
    0 percent completed
  100 percent completed


DiskPart successfully formatted the volume.

DISKPART> 
DiskPart successfully assigned the drive letter or mount point.

DISKPART> 
Leaving DiskPart...

2021-04-22 19:42:29.7382 [info] The partitions have been created!
2021-04-22 19:42:29.7538 [info] Applying the VBR patch...
2021-04-22 19:42:29.7694 [info] The disk has been successfully patched!
2021-04-22 19:42:29.7850 [info] Applying the WIM image to: K
2021-04-22 19:42:29.7850 [trace] Started Windows Imaging
2021-04-22 19:53:42.7890 [trace] Windows Imaging finished the task successfully!
2021-04-22 19:53:43.0859 [info] The image has been applied to: K
2021-04-22 19:53:43.1014 [info] Installing the drivers...
2021-04-22 19:53:59.4569 [info] The drivers have been installed!
2021-04-22 19:53:59.4883 [info] Installing the boot files on: L
2021-04-22 19:53:59.9568 [info] The boot files have been copied to: L
2021-04-22 19:53:59.9568 [info] Creating the BCD...
2021-04-22 19:53:59.9725 [debug] Launch bcdboot.exe with the following arguments: K:\Windows /s L: /f UEFI
2021-04-22 19:54:04.1277 [debug] bcdboot.exe process output:
2021-04-22 19:54:04.1277 [debug] Standard output:
Boot files successfully created.

2021-04-22 19:54:04.1433 [info] The BCD has been created!
2021-04-22 19:54:04.1590 [info] Setting testsigning and nointegritychecks on...
2021-04-22 19:54:04.1590 [debug] Launch bcdedit.exe with the following arguments: /store L:\EFI\Microsoft\Boot\BCD /set {default} testsigning on
2021-04-22 19:54:04.2683 [debug] bcdedit.exe process output:
2021-04-22 19:54:04.2683 [debug] Standard output:
The operation completed successfully.

2021-04-22 19:54:04.2843 [debug] Launch bcdedit.exe with the following arguments: /store L:\EFI\Microsoft\Boot\BCD /set {default} nointegritychecks on
2021-04-22 19:54:04.3777 [debug] bcdedit.exe process output:
2021-04-22 19:54:04.3777 [debug] Standard output:
The operation completed successfully.

2021-04-22 19:54:04.3777 [info] testsigning and nointegritychecks have been enabled!
2021-04-22 19:54:04.4095 [info] Disabling the recovery environment...
2021-04-22 19:54:04.4095 [debug] Launch bcdedit.exe with the following arguments: /store L:\EFI\Microsoft\Boot\BCD /set {default} recoveryenabled no
2021-04-22 19:54:04.5026 [debug] bcdedit.exe process output:
2021-04-22 19:54:04.5026 [debug] Standard output:
The operation completed successfully.

2021-04-22 19:54:04.5188 [info] The recovery environment has been disabled!
2021-04-22 19:54:04.5188 [info] Converting boot partition to ESP...
2021-04-22 19:54:04.5188 [debug] Launch diskpart.exe with the following commands: select disk 2 , select partition 1 , remove letter=L: , set id=C12A7328-F81F-11D2-BA4B-00A0C93EC93B , exit
2021-04-22 19:54:06.3617 [debug] diskpart.exe process output:
2021-04-22 19:54:06.3617 [debug] Standard output:

Microsoft DiskPart version 10.0.21364.1

Copyright (C) Microsoft Corporation.
On computer: LENOVO

DISKPART> 
Disk 2 is now the selected disk.

DISKPART> 
Partition 1 is now the selected partition.

DISKPART> 
There is no volume selected.
Please select a volume and try again.

DISKPART> 
DISKPART> 
Leaving DiskPart...

2021-04-22 19:54:06.3772 [info] Boot partition converted to ESP.
2021-04-22 19:54:06.3930 [info] The installation has been finished!
2021-04-22 19:54:06.3930 [info] Elapsed time: 00:11:45
2021-04-22 19:56:33.8701 [info] Unmounting the ISO image...
2021-04-22 19:56:35.7829 [info] The ISO image has been unmounted!
2021-04-22 19:56:35.7985 [info] Deleting the temporary folder...
2021-04-22 19:56:35.8141 [info] The temporary folder has been deleted!
Mario

Mario

2021-04-23 13:34

administrator   ~0000239

Last edited: 2021-04-23 13:34

You have problem X, but you're trying to solve problem Y. You shouldn't need to limit the RAM in the first place.

GPT support on USB drives isn't working properly at the moment (https://www.worproject.ml/bugtracker/view.php?id=137), so MBR is your only option.

If I flash in MBR mode, no crashes but Windows doesn't see more than 4GB.

Try a clean re-install with MBR (don't edit the config.txt file), then disable the 3 GB limit in UEFI and let it boot. Does it still see only 4 GB of RAM?

RgA59

RgA59

2021-04-23 14:05

reporter   ~0000241

Good morning Mario and thanks for your prompt reply.
I didn't know there were issues with GPT/USB. In fact, at WoR discord I was advised to use GPT so the OS can be updated via WU.

I've tried countless times to flash with MBR without editing config.txt to no avail, the result is always the same, 8GB available but only 3.95GB usable.
I think I'm gonna buy a fast SDCard and put USB to rest until the issues are fixed.

Thanks again, you and the team are doing a great job, please keep up. Cheers!

Mario

Mario

2021-04-23 15:53

administrator   ~0000242

That is weird. The partition scheme shouldn't affect the amount of available RAM.
It may be worth trying a non-insider build (like 19042).

I may release a new version of the imager that fixes the GPT issue this week.

RgA59

RgA59

2021-04-24 00:17

reporter   ~0000244

Weird indeed.
Believe I've tried, most of the "countless" failed attempts were 1904x. They all work fine but not with the GPT/USB/8GB combination.
Great! thanks for letting me know, looking forward to test it.
Cheers!

Mario

Mario

2021-04-26 21:10

administrator   ~0000248

Version 2.1.0 is now available: https://worproject.ml/downloads
Let me know if it fixes the issue.

RgA59

RgA59

2021-04-26 22:45

reporter   ~0000249

Hi Mario,
Yes thanks! everything is working in GPT mode w/o crashes so far. Total_mem from advance menu @4096MB is working.
Where do I increase it to test the upper limit w/o crashing?
I can try MBR if needed for feedback purposes otherwise I'm happy as it is. LMK. Cheers!

Mario

Mario

2021-04-26 23:58

administrator   ~0000250

So it still crashes with GPT and no memory limit? What's the stop code in the BSoD/GSoD?

RgA59

RgA59

2021-04-27 00:47

reporter   ~0000251

No crashes. I flashed 19042.928 and successfully updated all the way up to 19043.962 without a single crash so far but I'd like to increase usable memory gradually to find out at which point the crashes would start again if any. Before I couldn't do that because I was limited to either 3GB (Pi limit) or 8GB (limit disable). I can't provide you with logs because I didn't keep copies of all those failed installations.
Is it possible to now increase the usable memory to a value higher that 4096MB without re-flashing?

RgA59

RgA59

2021-04-27 05:07

reporter   ~0000252

Never mind, I found out that it can be done by using msconfig.
I can't believe is so simple, I never had the need to this before so I didn't know.

So far so good, no crashes even at full 8GB usable. I'm not sure what was causing all those GSODs before, I haven't changed anything else so it must've been the issue USB/GPT that you mentioned at the beginning.

Now that it is stable, Is time to start overclocking to see how far it will go. Thanks for everything. Cheers!

Mario

Mario

2021-04-27 15:42

administrator   ~0000253

Good to hear that it works now!

Issue History

Date Modified Username Field Change
2021-04-23 02:39 RgA59 New Issue
2021-04-23 05:04 RgA59 Note Added: 0000238
2021-04-23 05:04 RgA59 File Added: WoR.2021-04-22 19_41_28.1389.log
2021-04-23 13:34 Mario Note Added: 0000239
2021-04-23 13:34 Mario Note Edited: 0000239
2021-04-23 14:05 RgA59 Note Added: 0000241
2021-04-23 15:53 Mario Note Added: 0000242
2021-04-24 00:17 RgA59 Note Added: 0000244
2021-04-26 21:10 Mario Note Added: 0000248
2021-04-26 22:45 RgA59 Note Added: 0000249
2021-04-26 23:58 Mario Note Added: 0000250
2021-04-27 00:47 RgA59 Note Added: 0000251
2021-04-27 05:07 RgA59 Note Added: 0000252
2021-04-27 05:07 RgA59 File Added: Screenshot 2021-04-27 020420.png
2021-04-27 15:42 Mario Note Added: 0000253
2021-04-27 15:42 Mario Assigned To => Mario
2021-04-27 15:42 Mario Status new => resolved
2021-04-27 15:42 Mario Resolution open => fixed